Instance of the original version
# Example:
df.pivot_table(index='Survived', values='Age', aggfunc='sum')
Instance of the faster version
# Example:
df.groupby('Survived').agg({'Age': 'sum'})
This is about 3x faster on the titanic dataset. We need to test more.
Instance of the original version
Instance of the faster version
This is about 3x faster on the titanic dataset. We need to test more.