Se7enSquared
10/23/2019 - 4:47 PM

Pandas Aggregate (Group by)

# Group by the aggregate mean of column1
df.groupby(['column1']).mean()

# other groupbys = sum, mean, count, etc