Reputation: 21345
Love using pandas to manipulate data but I am having some trouble.
Whenever I output a dataframe as a file, the index remains. I would like to remove it, and have the first column in column A of the excel spreadsheet.
Upvotes: 1
Views: 72
Reputation: 139132
Set the index
keyword argument to False
:
df.to_excel( ..., index=False)
See the docs of to_excel
for all arguments: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_excel.html
Upvotes: 4