Skip to content

Commit

Permalink
fix str bug
Browse files Browse the repository at this point in the history
  • Loading branch information
minhkhul committed Nov 11, 2024
1 parent b9df78f commit ae5d623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nssp/delphi_nssp/pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def secondary_pull_nssp_data(socrata_token: str):

df_ervisits.loc[df_ervisits["geo_value"] == "National", "geo_type"] = "nation"

hhs_region_mask = df_ervisits["geo_value"].str.lower().startswith("region ")
hhs_region_mask = df_ervisits["geo_value"].str.lower().str.startswith("region ")
df_ervisits.loc[hhs_region_mask, "geo_value"] = df_ervisits.loc[hhs_region_mask, "geo_value"].str.replace(
"Region ", ""
)
Expand Down

0 comments on commit ae5d623

Please sign in to comment.