average of one column with respect to another column pandas dataframe code example
Example 1: how to find mean of one column based on another column in python
In [5]: df.groupby('Column1')['Column2'].mean()
Example 2: python - caéculate the average based on the level of a second column in a df
df.groupby('StationID')['BiasTemp'].mean()