天宫鹤

AttributeError: 'DataFrame' object has no attribute 'iteritems'. Did you mean: 'isetitem'?解决办法!!!

在使用Python Pandas的DataFrame时,报异常:

语句:for col, data in data_list[i].iteritems():

异常:AttributeError: 'DataFrame' object has no attribute 'iteritems'. Did you mean: 'isetitem'?

解决办法:

语句:for col, data in data_list[i].items():

 

说明:iteritems()被items()替代!!!

 

posted on 2024-04-12 18:42  GoGrid  阅读(361)  评论(0编辑  收藏  举报

导航