how to get avg value of a vraible with respect to another variable in pandas code example
Example: how to find mean of one column based on another column in python
In [5]: df.groupby('Column1')['Column2'].mean()
In [5]: df.groupby('Column1')['Column2'].mean()