I would like to write string text in my outputs excel file; My dataframe output is;
Cost Centre Category .. Price
AQM R1 10
BQM R2 100
Im writing this output to an excel;
df2.to_excel(writer, sheet_name='Invoice Summary', index=False)
I would like to add sum value at the end of price column using worksheet write function
worksheet = writer.sheets['Invoice Summary'']
text='Total'
total = sum(df2['Price'] )
worksheet.write(1, 0, text)
To do this, i want to know the row, column value of the last cell. How can I find that in python?