I am trying to find the mean value of the dataframe\'s elements in corresponding to particular column when either of the condition is true. For example:
Usin