Update generate counties script for geopandas v1.0.1

This commit is contained in:
Dan Paulat 2024-08-08 10:13:39 -05:00
parent 88c3cb49d6
commit 842676933f

View file

@ -69,7 +69,7 @@ def ProcessCountiesDbf(dbInfo, dbfFilename):
# Read dataframe
dbfTable = gpd.read_file(filename = dbfFilename,
include_fields = ["STATE", "FIPS", "COUNTYNAME"],
columns = ["STATE", "FIPS", "COUNTYNAME"],
ignore_geometry = True)
dbfTable.drop_duplicates(inplace=True)
@ -88,7 +88,7 @@ def ProcessStateDbf(dbInfo, dbfFilename):
# Read dataframe
dbfTable = gpd.read_file(filename = dbfFilename,
include_fields = ["STATE", "NAME"],
columns = ["STATE", "NAME"],
ignore_geometry = True)
dbfTable.drop_duplicates(inplace=True)
@ -106,7 +106,7 @@ def ProcessZoneDbf(dbInfo, dbfFilename):
# Read dataframe
dbfTable = gpd.read_file(filename = dbfFilename,
include_fields = ["ID", "STATE", "ZONE", "NAME"],
columns = ["ID", "STATE", "ZONE", "NAME"],
ignore_geometry = True)
dbfTable.drop_duplicates(inplace=True)