0 votes
in Python Flask by

Write a function median_rainfall to find the median amount of rainfall for the days on which it rained.

1 Answer

0 votes
by

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.

...