From ddbf6c53d37102a6436986b7291f75a46c230782 Mon Sep 17 00:00:00 2001 From: Emanuele Panizio Date: Tue, 10 Oct 2023 15:36:01 +0200 Subject: [PATCH] rename name_0, and gid_0 region fields for gazetteer generation --- build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index 550713d..e41fabb 100644 --- a/build.py +++ b/build.py @@ -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