(Jan-07-2023, 09:13 AM)jacklee26 Wrote: when i run it occur this error, do you know how to fix thisIs not a error just a Warning,if look into it.
FutureWarning: save is not part of the public API, usage can give unexpected results and will be removed in a future version
writer.save()
pandas.ExcelWriter they have deprecated
save()
so use close()
instead.Or better as they advice use writer as
context manager
,then no need to save or close.with pd.ExcelWriter('out.xlsx', engine='openpyxl') as writer: df1.to_excel(writer, 'sheet', index=False) df2.to_excel(writer, 'sheet1', index=False)