File tree Expand file tree Collapse file tree 2 files changed +404
-411
lines changed
_delphi_utils_python/data_proc/geomap Expand file tree Collapse file tree 2 files changed +404
-411
lines changed Original file line number Diff line number Diff line change @@ -559,17 +559,10 @@ def fetch_county_groups_spreadsheet():
559
559
county_groups ["state FIPS" ] = county_groups ["state FIPS" ].astype (int )
560
560
561
561
# Counties belonging to each group are listed (as FIPS codes) in the "county
562
- # FIPS grouping" column, concatenated and separated by the pipe "|". Each
563
- # included FIPS code is also listed in its own unnamed column. County groups
564
- # can contain varying numbers of counties, and if CHNG provides new or updated
565
- # county groupings the number of unnamed columns listing included counties
566
- # could change. Use a general approach to find all of them.
567
- county_cols = [colname for colname in county_groups .columns if colname .startswith ("Unnamed: " )]
568
-
562
+ # FIPS grouping" column, concatenated and separated by the pipe "|".
569
563
new_names = {
570
564
"state FIPS" : "state_fips" ,
571
- "county FIPS grouping" : "fips_list" ,
572
- ** { colname : ("county" + str (i + 1 )) for i , colname in enumerate (county_cols )}
565
+ "county FIPS grouping" : "fips_list"
573
566
}
574
567
575
568
county_groups = county_groups .rename (
You can’t perform that action at this time.
0 commit comments