- 链接地址:https://blog.csdn.net/qian1314520hu/article/details/112269458
- 链接标题:python pandas AttributeError: ‘DataFrame‘ object has no attribute ‘ix‘_attributeerror: 'dataframe' object has no attribut-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:8652
文章浏览阅读5.8k次,点赞4次,收藏4次。python使用pandas DataFrame.ix的时候 AttributeError: 'DataFrame' object has no attribute 'ix'在使用进行DataFrame.ix进行表中的数据块选择的时候,会抛出’DataFrame’ object has no attribute ‘ix’,这个是由于在不同的pandas的版本中,DataFrame的相关属性已过期,已不推荐使用导致的。df.ix[:,'table_header'] # 已过期可以使用loc进行替换即_attributeerror: 'dataframe' object has no attribute 'index
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除