More context. You’re given a dataframe df_rain containing rainfall data. The dataframe has two columns: day of the week and rainfall in inches.
With this question, there are two key steps:
Remove all days with no rain.
Then, get the median of the dataframe.