DOC: pivot_table example
The documentation for pivot table seems limited https://pandas.pydata.org/pandas-docs/version/0.17/generated/pandas.pivot_table.html

It doesn't show how `df` was generated. In addition, should pivot_table be `pd.pivot_table`.