From eb5c410deec7a2c497feaca156639b392a8a4569 Mon Sep 17 00:00:00 2001 From: Ben Young Date: Mon, 11 Nov 2024 13:47:49 -0500 Subject: [PATCH] move iso abbreviations to data folder --- MANIFEST.in | 1 + esupy/{ => data}/ISO_3166.csv | 0 esupy/location.py | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) rename esupy/{ => data}/ISO_3166.csv (100%) diff --git a/MANIFEST.in b/MANIFEST.in index 042d02f..b8cf514 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,3 @@ global-include *.yaml graft esupy/data_census +graft esupy/data diff --git a/esupy/ISO_3166.csv b/esupy/data/ISO_3166.csv similarity index 100% rename from esupy/ISO_3166.csv rename to esupy/data/ISO_3166.csv diff --git a/esupy/location.py b/esupy/location.py index f15a93c..d1352cf 100644 --- a/esupy/location.py +++ b/esupy/location.py @@ -82,7 +82,7 @@ def assign_state_abbrev(df): def read_iso_3166(): # accessed from the ISO online browing platform # https://www.iso.org/obp/ui/#search - df = pd.read_csv(path / 'ISO_3166.csv') + df = pd.read_csv(path / 'data' / 'ISO_3166.csv') df = df.rename(columns={'English short name': 'Name', 'Alpha-2 code': 'ISO-2d', 'Alpha-3 code': 'ISO-3d'})