Skip to content

Commit

Permalink
rename name_0, and gid_0 region fields for gazetteer generation
Browse files Browse the repository at this point in the history
  • Loading branch information
panc86 committed Oct 10, 2023
1 parent c186d05 commit ddbf6c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ def build_region_gazetteer(polygons: pandas.DataFrame) -> pandas.DataFrame:
gazetteer = pandas.concat([
varnames.replace('tempvalue', None),
polygons.loc[:, ["NAME_5","NAME_4","NL_NAME_3","NAME_3","NL_NAME_2","NAME_2","NL_NAME_1","NAME_1"]].add_prefix(prefix),
polygons.NAME_0,
polygons.GID_0,
polygons.NAME_0.rename("country_name"),
polygons.GID_0.rename("country_iso3"),
polygons.UID,
], axis=1)
# normalize column names
Expand Down

0 comments on commit ddbf6c5

Please sign in to comment.