From ae5d623a2fbc74c361051376c2932028891b3eaf Mon Sep 17 00:00:00 2001 From: minhkhul Date: Mon, 11 Nov 2024 15:59:56 -0500 Subject: [PATCH] fix str bug --- nssp/delphi_nssp/pull.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nssp/delphi_nssp/pull.py b/nssp/delphi_nssp/pull.py index 3033b1eff..c6973ac6f 100644 --- a/nssp/delphi_nssp/pull.py +++ b/nssp/delphi_nssp/pull.py @@ -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 ", "" )