Command
df.to_excelExplanation
df.to_excel() saves DataFrame to Excel format (.xlsx).
Examples
Export to Excel without index
df.to_excel("output.xlsx", index=False)df.to_exceldf.to_excel() saves DataFrame to Excel format (.xlsx).
Export to Excel without index
df.to_excel("output.xlsx", index=False)