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 c8f4dab commit 5d83734Copy full SHA for 5d83734
_delphi_utils_python/delphi_utils/geomap.py
@@ -528,14 +528,14 @@ def fips_to_megacounty(
528
data = data.reset_index().groupby([date_col, mega_col]).sum()
529
return data.reset_index()
530
531
- def as_mapper_name(self, geo_type):
+ def as_mapper_name(self, geo_type, state="state_id"):
532
"""
533
Return the mapper equivalent of a region type.
534
535
Human-readable names like 'county' will return their mapper equivalents ('fips').
536
537
if geo_type == "state":
538
- return "state_code"
+ return state
539
if geo_type == "county":
540
return "fips"
541
return geo_type
0 commit comments