We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54faa45 commit 4fa39b7Copy full SHA for 4fa39b7
_delphi_utils_python/data_proc/geomap/geo_data_proc.py
@@ -502,8 +502,8 @@ def derive_fips_chngfips_crosswalk():
502
columns="county_num"
503
).dropna()
504
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")
+ county_groups["state_fips"] = county_groups["state_fips"].str.zfill(2)
+ county_groups["group"] = county_groups["group"].str.zfill(2)
507
county_groups["fips"] = county_groups["fips"].str.zfill(5).astype("string")
508
# Combine state codes and group ids into a single FIPS code.
509
county_groups["chng-fips"] = county_groups["state_fips"] + "g" + county_groups["group"]
0 commit comments