From 9b11061cbb0ed47679e50daa2f9a6145d6e328e1 Mon Sep 17 00:00:00 2001 From: Jake Adams Date: Thu, 31 Oct 2024 13:39:00 -0600 Subject: [PATCH] chore: don't double-count statewide --- src/wmrc/yearly.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wmrc/yearly.py b/src/wmrc/yearly.py index 19a0f80..109a9bc 100644 --- a/src/wmrc/yearly.py +++ b/src/wmrc/yearly.py @@ -220,7 +220,7 @@ def statewide_metrics(county_year_df: pd.DataFrame) -> pd.DataFrame: pd.DataFrame: Statewide yearly metrics. """ - in_state_only = county_year_df.drop(index="Out of State", errors="ignore") + in_state_only = county_year_df.drop(index=["Out of State", "Statewide"], errors="ignore") statewide_series = pd.Series() statewide_series["statewide_msw_recycled"] = in_state_only["county_wide_msw_recycled"].sum()