'DataFrame' object has no attribute 'rows'
时间: 2023-10-07 17:08:01 浏览: 179
在提到"DataFrame"对象没有"rows"属性时,没有明确的引用内容。不过,根据您提供的引用内容,可以确定这个问题与pandas库中的"DataFrame"对象的属性有关。通过查看引用和引用,错误信息"AttributeError: 'DataFrame' object has no attribute 'score'"可能是因为在使用"data.score.describe()"时,数据框(data)中没有名为"score"的列。这意味着您需要在数据框中确保存在名为"score"的列。
另外,引用提到了"loc"方法,它可以根据指定的标签从索引中获取行(或列)。这与您提到的"DataFrame"对象没有"rows"属性有关。但是,请注意"rows"属性在pandas的"DataFrame"对象中是不存在的。如果您想要获取特定的行,可以使用"loc"方法并指定相应的行标签来实现。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [# 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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [AttributeError: ‘DataFrame‘ object has no attribute ‘iteritems‘解决方案](https://blog.csdn.net/weixin_43178406/article/details/131958563)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [AttributeError: ‘DataFrame‘ object has no attribute ‘ix](https://blog.csdn.net/qq_29983883/article/details/116082333)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文