Skip to content

Commit

Permalink
Update surface_temperature_anomalies_min_max.py
Browse files Browse the repository at this point in the history
  • Loading branch information
veronikasamborska1994 committed Nov 24, 2024
1 parent bf66cd2 commit 6774b08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6774b08

Please sign in to comment.