I'm starting with a big data frame which after some data mining work I need to reduce it to a file with 2 sheets and writing the file after... This question refers to the writing part and more exactly if I use:
#write the files:
# first file:
# Specify a writer
writer = pd.ExcelWriter('example1.xlsx', engine='xlsxwriter')
# Write your DataFrame to a file
df11.to_excel(writer, 'Sheet1')
df12.to_excel(writer, 'Sheet2')
# Save the result
writer.save()
I get the same dimension allocated for all the columns, even if they are formed from numbers or text. And for some reason I get an another column with the row nr from the previous file, despite the fact that if I visualize the files in Rodeo looks just fine...
The file before writing:
The file after writing:
Any ideas are appreciated.


