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