Export from pandas to_excel without row names (index)? Export from pandas to_excel without row names (index)? pandas pandas

Export from pandas to_excel without row names (index)?


You need to set index=False in to_excel in order for it to not write the index column out, this semantic is followed in other Pandas IO tools, see http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_excel.html and http://pandas.pydata.org/pandas-docs/stable/io.html


Example: index = False

import pandas as pdwriter = pd.ExcelWriter("dataframe.xlsx", engine='xlsxwriter')dataframe.to_excel(writer,sheet_name = dataframe, index=False)writer.save()