attributeError: 'DataFrame' object has no attribute 'append'
时间: 2023-10-08 12:07:03 浏览: 269
AttributeError: 'DataFrame' object has no attribute 'append'错误出现是因为DataFrame对象没有'append'属性。这个错误通常发生在使用过时的pandas版本中,因为在一些较新的版本中,'append'方法已被弃用。要解决这个问题,你可以使用其他方法替代'append'方法来向DataFrame对象中添加数据,例如使用concat()函数来合并两个DataFrame对象。另外,请确保你的pandas版本是最新的,以避免由于过时的方法而引发错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [已解决:pandas报AttributeError: DataFrame object has no attribute ix错误](https://blog.csdn.net/mahoon411/article/details/118917335)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [# Pycharm关于AttributeError: ‘DataFrame’ object has no attribute ‘score’的错误](https://download.csdn.net/download/weixin_38720756/13749766)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文