Skip to content

Commit

Permalink
Fix filter
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhmorris authored Feb 5, 2025
1 parent b9bb9cb commit 1b7b106
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipelines/prep_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def process_state_level_data(

if state_abb == "US":
locations_to_aggregate = (

Check warning on line 148 in pipelines/prep_data.py

View check run for this annotation

Codecov / codecov/patch

pipelines/prep_data.py#L148

Added line #L148 was not covered by tests
state_pop_df["abb"].filter(pl.col("abb") != "US").unique()
state_pop_df.filter(pl.col("abb") != "US").get_column("abb").unique()
)
logger.info("Aggregating state-level data to national")
state_level_nssp_data = aggregate_to_national(
Expand Down Expand Up @@ -207,7 +207,7 @@ def aggregate_facility_level_nssp_to_state(
if state_abb == "US":
logger.info("Aggregating facility-level data to national")
locations_to_aggregate = (

Check warning on line 209 in pipelines/prep_data.py

View check run for this annotation

Codecov / codecov/patch

pipelines/prep_data.py#L209

Added line #L209 was not covered by tests
state_pop_df["abb"].filter(pl.col("abb") != "US").unique()
state_pop_df.filter(pl.col("abb") != "US").get_column("abb").unique()
)
facility_level_nssp_data = aggregate_to_national(
facility_level_nssp_data,
Expand Down

0 comments on commit 1b7b106

Please sign in to comment.