学习《利用Python进行数据分析》第二章的时候,处理1880-2010年间全美婴儿姓名数据,有句代码总是报错:
total_births=names.pivot_table('births',rows='year',cols='sex',aggfunc=sum)
报错信息如下:
Traceback (most recent call last):
File "<ipython-input-75-8bbcd2a6b8ca>", line 1, in <
学习《利用Python进行数据分析》第二章的时候,处理1880-2010年间全美婴儿姓名数据,有句代码总是报错:
total_births=names.pivot_table('births',rows='year',cols='sex',aggfunc=sum)
报错信息如下:
Traceback (most recent call last):
File "<ipython-input-75-8bbcd2a6b8ca>", line 1, in <