Given a dataframe with rainfall data (day of the week and rainfall inches), write a function to find the median amount of rainfall for the days on which it rained.
There are two steps to solve the problem:
Step 1. Remove all days with no rain.
Step 2. Calculate the attribute median of the dataframe.