I need to write multiple matrices in Excel using XlsxWriter.
But I would like to specify the location of matrices in advance
Here is my code
writer = pd.ExcelWriter('test.xlsx', engine='xlsxwriter')
CC1 = Get_Data(test1) ## get the corresponding matrix
df = DataFrame(CC) ## put into a dataframe format
df.to_excel(writer, sheet_name="sheet1") ## write into excel
CC2 = Get_Data(test2) ## get the corresponding matrix
df = DataFrame(CC2) ## put into a dataframe format
df.to_excel(writer, sheet_name="sheet1") ## write into excel
writer.save()
How can I specify the location of cell in which I can insert the corresponding daraframe?