pandas 图表画不出

如图,路径难道不是按照上面的吗,为什么导不出,图3.4是教程里面的,路径为何不同,问题是,按照教程的路径我也导不出
pandas图表画不出

pandas图表画不出

pandas图表画不出

pandas图表画不出

讨论数量: 2
Jason990420

The read_excel() method can read Excel 2003 (.xls) files using the xlrd Python module. Excel 2007+ (.xlsx) files can be read using either xlrd or openpyxl. Binary Excel (.xlsb) files can be read using pyxlsb. The to_excel() instance method is used for saving a DataFrame to Excel. Generally the semantics are similar to working with csv data. See the cookbook for some advanced strategies.

xlrd is a library for reading data and formatting information from Excel files, whether they are .xls or .xlsx files.

pip install xlrd solved the problem.

Maybe also install xlwt openpyxl xlsxwriter if other actions required.

1周前 评论

ImportError不是提示缺少xlrd依赖库么。安装一下应该就可以解决了。

2天前 评论

请勿发布不友善或者负能量的内容。与人为善,比聪明更重要!