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.

Related questions

0 votes
asked Feb 11, 2021 in Python by SakshiSharma
0 votes
asked Oct 3, 2021 in Class-XI-PHYSICS by AdilsonLima
...