From 6774b08f1e56431d6d45706dd4481cd8655aad54 Mon Sep 17 00:00:00 2001 From: veronikasamborska1994 <32176660+veronikasamborska1994@users.noreply.github.com> Date: Thu, 14 Nov 2024 17:37:35 +0100 Subject: [PATCH] Update surface_temperature_anomalies_min_max.py --- .../climate/2023-12-20/surface_temperature_anomalies_min_max.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etl/steps/data/grapher/climate/2023-12-20/surface_temperature_anomalies_min_max.py b/etl/steps/data/grapher/climate/2023-12-20/surface_temperature_anomalies_min_max.py index 03e34399360..1e96b82bfce 100644 --- a/etl/steps/data/grapher/climate/2023-12-20/surface_temperature_anomalies_min_max.py +++ b/etl/steps/data/grapher/climate/2023-12-20/surface_temperature_anomalies_min_max.py @@ -26,7 +26,7 @@ def run(dest_dir: str) -> None: tb = tb.drop(columns=["time"], errors="raise") # Filter the DataFrame to include only years less than 2023 - filtered_tb = tb[tb["year"] < 2023] + filtered_tb = tb[tb["year"] < 2024] # Group by country and month, and then calculate the maximum temperature anomaly for each group max_temp_anomaly = filtered_tb.groupby(["country", "month"])["temperature_anomaly"].max().reset_index()