原文:AttributeError: 'DataFrame' object has no attribute 'save'

AttributeError: DataFrame object has no attribute save frame.save改為frame.to pickleAttributeError: module pandas has no attribute load pd.load改為pd.read pickle ...

2021-02-20 16:12 0 750 推薦指數:

查看詳情

成功解決pandas報AttributeError: DataFrame object has no attribute ix錯誤

在實際操作中有時候需要把采集的數據或者分析完的數據保存為excel中,列名按照執行排序,一開始我采用DataFrame的ix方式去實現是可以達到預期的,不過最近發現好像該方法函數被移除了,運行會拋出以下錯誤: Traceback (most recent call last): File ...

Sun Sep 19 00:38:00 CST 2021 0 367
AttributeError: 'Table' object has no attribute 'plot'錯誤

今天在用到camelot爬取pdf的表格時,想選取部分區域進行爬取,就想用plot把pdf畫一下,選個坐標。 看了網上的示例,在使用camelot.read_pdf獲取當前頁面以后調用tables[0].plot('text'),提示AttributeError: 'Table' object ...

Mon Jan 06 09:35:00 CST 2020 0 1305
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM