AttributeError: 'DataFrame' object has no attribute 'row_values'
时间: 2023-09-05 17:13:12 浏览: 131
AttributeError: 'DataFrame' object has no attribute 'row_values'这个错误是因为DataFrame对象没有row_values属性。在pandas库中,DataFrame对象是用于处理结构化数据的二维表格。要访问DataFrame对象的行数据,可以使用iloc属性加上行号来获取特定的行。例如,可以使用df.iloc来获取第一行的数据。如果想要获取所有行的数据,可以使用df.values来获取一个包含所有行的二维数组。所以,如果你想访问DataFrame对象的行数据,请使用iloc属性或values属性,而不是row_values属性。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [AttributeError: 'NoneType' object has no attribute 'append',列表list和dataframe使用append的返回值](https://blog.csdn.net/zhanghang0224/article/details/100594600)[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 ]
阅读全文