Monthly Rainfall Totals
Data questions · Advanced · about 10 min
rain_readings.csv has the rain measured on some days of June, July and August 2025, in millimeters, with dates written like 2025-06-03. The months have different numbers of readings. Set answer to a list of three numbers: the total rain for June, July and August, in that order, each rounded to 1 decimal place.
Example
The first lines of rain_readings.csv:
date,rain_mm 2025-06-03,12.4 2025-06-07,5.1
rain_readings.csv · 29 rows
| date | rain_mm |
|---|---|
| 2025-06-03 | 12.4 |
| 2025-06-07 | 5.1 |
| 2025-06-10 | 22.8 |
| 2025-06-14 | 0.6 |
| 2025-06-17 | 31.5 |
| 2025-06-21 | 8.2 |
| 2025-06-24 | 17.9 |
| 2025-06-27 | 3.3 |
First 8 of 29 rows.
import pandas as pd
df = pd.read_csv("rain_readings.csv")
answer = None
The solution opens after your first Check.