执行以下语句:
sbnew_feat.pivot_table(index=['prov_area'], columns=['city_tier'], aggfunc={'userid':'count'})
报错信息如下:
InvalidIndexErrorTraceback (most recent call last)
<ipython-input-207-a25eda0ce426> in <module>()
----> 1 sbnew_feat.pivot_table(index=['prov_area'], columns=['city_tier'], aggfunc={'userid':'count'})
/Users/liyuan21/anaconda2/lib/python2.7/site-packages/pandas/core/frame.pyc in pivot_table(self, values, index, columns, aggfunc, fill_value, margins, dropna, margins_name)
5757 aggfunc=aggfunc, fill_value=fill_value,
5758 margins=margins, dropna=dropna,
-> 5759 margins_name=margins_name)
5760
5761 def stack(self, level=