http://stackoverflow.com/questions/21706030/pandas-groupby-agg-function-column-dtype-error