您当前的位置: 首页 > 
  • 0浏览

    0关注

    2393博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

成功解决AttributeError: ‘DataFrame‘ object has no attribute ‘ix‘

一个处女座的程序猿 发布时间:2020-11-28 23:13:30 ,浏览量:0

成功解决AttributeError: 'DataFrame' object has no attribute 'ix'

 

 

 

 

目录

解决问题

解决思路

解决方法

 

 

 

 

 

 

解决问题

return object.__getattribute__(self, name) AttributeError: 'DataFrame' object has no attribute 'ix'

 

 

 

 

 

 

解决思路

属性错误:“DataFrame”对象没有属性“ix”

 

 

 

 

 

解决方法

版本升级导致,在pandas的1.0.0版本开始,移除了Series.ix and DataFrame.ix 方法 使用DataFrame的loc方法或者iloc方法进行替换!

 

 

 

 

哈哈,大功告成!

 

 

 

 

 

 

 

 

 

关注
打赏
1664196048
查看更多评论
立即登录/注册

微信扫码登录

0.0501s