Hi guys,

I have a dataframe with information related to ozone and I need to calculate a stastistic parameter for a single column. This column has the number of days over a year when the daily maximum rolling 8-hour mean ozone concentration is >120 ug/m3 for multiple sites (stations of air pollutants measurement). Using this column, I need to calculate the average for three years taking into account the different sites.

I don't know how to code this, I have think of a loop, but I have no idea.

Thanks in advance!!!