row = 5
column = 0
writer = pd.ExcelWriter(file_name, engine='openpyxl')
response = send_request('2017-2018-regular', item).content
df = pd.read_csv(io.StringIO(response.decode('utf-8')))
df.to_excel(writer, sheets, startrow=row, startcol=column, index=False)
I would like to put a simple title at the top of my Excel sheet in considering I am working with pandas
and openpyxl
. How could I do such thing? I want that title could be displayed on the top of the sheet (startrow=0
, startcol=0
). Please show me an example how to use it.
I know the question Write dataframe to excel with a title is related, but I can't use it for the simple reason that the engine is different. I use openpyxl
lib and they used xlsxwriter
lib in their answer. What is the equivalent for write_string
, but with pandas
?