When I create a pivot table on the data frame that I have, the transfer aggfunc='mean'works as expected, aggfunc='count'works as expected, but aggfunc=['mean', 'count']results in:AttributeError: 'str' object has no attribute '__name__
This format seemed to work earlier: Multiple AggFun in Pandas
How to create a pivot table with multiple functions?
source
share