pandas 透视表bug "InvalidIndexError: Reindexing only valid with uniquely valued Index objects"
执行以下语句:
sbnew_feat.pivot_table(index=['prov_area'], columns=['city_tier'], aggfunc={'userid':'count'})
报错信息如下:
InvalidIndexErrorTraceback (most recent call last)
<ipython-input-207-a25eda0ce42...
原创
2019-09-12 10:51:32 ·
3469 阅读 ·
0 评论