AttributeError: 'Series' object has no attribute 'as_type'
时间: 2023-09-30 09:12:40 浏览: 81
AttributeError: ‘NoneType’ object has no attribute ‘children’ 错误
5星 · 资源好评率100%
AttributeError: 'Series' object has no attribute 'as_type'是因为Series对象没有'as_type'属性。正确的方法是使用'astype'方法而不是'as_type'方法来改变数据类型。引用中的代码中使用了'astype'方法来将关键点数据转换为float类型。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [AttributeError: ‘Series’ object has no attribute ‘as_matrix’](https://blog.csdn.net/weixin_45195364/article/details/115130960)[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* [AttributeError: 'Series' object has no attribute 'reshape'](https://blog.csdn.net/qq_36448051/article/details/81592379)[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 ]
阅读全文