admin管理员组

文章数量:1487745

【已解决】AttributeError: ‘Index‘ object has no attribute ‘to

报错及效果图

报错代码
代码语言:javascript代码运行次数:0运行复制
AttributeError: 'Index' object has no attribute 'to_list'
效果图

解决方案

必要的解决方法

错误原因是pandas的版本问题,将to_list 改为 tolist即可

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。 原始发表:2024-10-12,如有侵权请联系 cloudcommunity@tencent 删除attributeerrorlistobjectpandas解决方案

本文标签: 已解决AttributeError Index object has no attribute to