I have a dataframe that looks like the picture below and I am trying to calculate the rolling average of the ANGLE column like this.
tad3["angl_avg"]=tad3['ANGLE'].rolling(30).mean()
I want to exclude the max and min of each window when calculating the rolling average but cannot find a parameter for it- could someone help me with this?