0

I am convert json to excel with python, but had error like this. How i fix it??

Error : :1: FutureWarning: As the xlwt package is no longer maintained, the xlwt engine will be removed in a future version of pandas. This is the only engine in pandas that supports writing in the xls format. Install openpyxl and write to an xlsx file instead. You can set the option io.excel.xls.writer to 'xlwt' to silence this warning. While this option is deprecated and will also raise a warning, it can be globally set and the warning suppressed.

1
  • 1
    Please provide enough code so others can better understand or reproduce the problem.
    – Community Bot
    Commented Jun 23, 2022 at 2:32

1 Answer 1

0

instead of:

df.to_excel('modified.xls', index=False)

you should:

df.to_excel('modified.xlsx', index=False)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.