Editor

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
daterain_mm
2025-06-0312.4
2025-06-075.1
2025-06-1022.8
2025-06-140.6
2025-06-1731.5
2025-06-218.2
2025-06-2417.9
2025-06-273.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.