Skip to content

Commit 4fa39b7

Browse files
committed
state_fips and group are already str; don't need to cast
1 parent 54faa45 commit 4fa39b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_delphi_utils_python/data_proc/geomap/geo_data_proc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,8 @@ def derive_fips_chngfips_crosswalk():
502502
columns="county_num"
503503
).dropna()
504504

505-
county_groups["state_fips"] = county_groups["state_fips"].str.zfill(2).astype("string")
506-
county_groups["group"] = county_groups["group"].str.zfill(2).astype("string")
505+
county_groups["state_fips"] = county_groups["state_fips"].str.zfill(2)
506+
county_groups["group"] = county_groups["group"].str.zfill(2)
507507
county_groups["fips"] = county_groups["fips"].str.zfill(5).astype("string")
508508
# Combine state codes and group ids into a single FIPS code.
509509
county_groups["chng-fips"] = county_groups["state_fips"] + "g" + county_groups["group"]

0 commit comments

Comments
 (0)