Following problem: each iteration of a for loop a new sheet to an existing excel workbook should be added. in the same iteration a pandas series has to be written into this sheet. At the end there have to be one excel file with multiple sheets each containing one pandas series. I was trying by:
from pandas import Series
for counter in range(n):
sheet_name = 'Sheet%s' % counter
series.to_frame(name = '').to_excel('output.xls', sheet_name=sheet_name)
Unfortunately, this code generates a new excel workbook each iteration. As a result, there is only one sheet in there. Please help, I have absolutely no idea.