TypeError: ‘method‘ object is not subscriptable
生活随笔
收集整理的这篇文章主要介绍了
TypeError: ‘method‘ object is not subscriptable
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
TypeError: 'method' object is not subscriptable
目录
解决问题
解决思路
解决方法
解决问题
TypeError: 'method' object is not subscriptable
解决思路
类型错误:“方法”对象不可subscriptable,意思是你不该有下标的地方用了下标
解决方法
将
data_frame.replace['女','男']改为
data_frame.replace('女','男')哈哈,大功告成!
总结
以上是生活随笔为你收集整理的TypeError: ‘method‘ object is not subscriptable的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 成功解决ERROR: Could not
- 下一篇: Dataset:数据生成之利用panda