文章内容

2022/3/17 18:35:31,作 者: 黄兵

AttributeError: 'DataFrame' object has no attribute 'ix

最近在使用 Pands 的时候出现了如下错误:

AttributeError: 'DataFrame' object has no attribute 'ix

截图如下:

出现问题的原因:

Pands 的 .ix 已经弃用,可以使用下面的方式:

df.iloc[:, integer]


参考资料:

1、AttributeError: 'DataFrame' object has no attribute 'ix'


黄兵个人博客原创。

转载请注明出处:黄兵个人博客 - AttributeError: 'DataFrame' object has no attribute 'ix

IP 地址转换整数
Seaborn 库
分享到:

发表评论

评论列表