# Group by the aggregate mean of column1 df.groupby(['column1']).mean() # other groupbys = sum, mean, count, etc