This warning message indicates that the 'xlwt' package, used by pandas for writing data into '.xls' format, is no longer maintained. In an upcoming pandas version, the 'xlwt' engine will be removed.

To avoid future issues, it's recommended to install the 'openpyxl' package and write your data into '.xlsx' files instead of '.xls' files.

If you still need to use the 'xlwt' engine, you can silence this warning by setting the option 'io.excel.xls.writer' to 'xlwt'. However, this option is deprecated and will also raise a warning. If you choose to use this option, it can be globally set to suppress the warning throughout your code.

Pandas Deprecation Warning: xlwt Engine Removal and Openpyxl Solution

原文地址: https://www.cveoy.top/t/topic/qFeq 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录