1

My code:

df.to_excel('sheet.xlsx', encoding='utf-8')

The error message:

FutureWarning: the 'encoding' keyword is deprecated and will be removed in a future version. Please take steps to stop the use of 'encoding'

How can I replace the 'encoding'?

JosefZ
  • 28,460
  • 5
  • 44
  • 83

1 Answers1

1

encoding got deprecated because it seems to be unused. There is no alternative.

Clasherkasten
  • 488
  • 3
  • 9