From 47aaa23c0b7990c983f96d3674a24e5dd2b8c5f2 Mon Sep 17 00:00:00 2001 From: msoltadeo Date: Thu, 20 Aug 2020 20:54:05 -0300 Subject: [PATCH 1/2] add data type to serialno --- synthpop/census_helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synthpop/census_helpers.py b/synthpop/census_helpers.py index 3516cfc..da39401 100644 --- a/synthpop/census_helpers.py +++ b/synthpop/census_helpers.py @@ -173,7 +173,8 @@ def _read_csv(self, loc, **kargs): pums_df = pd.read_csv(loc, dtype={ "PUMA10": "object", "PUMA00": "object", - "ST": "object" + "ST": "object", + "SERIALNO": 'str' }, **kargs) pums_df = pums_df.rename(columns={ 'PUMA10': 'puma10', From 7f027c609582780fdddbff867898a01c878eca81 Mon Sep 17 00:00:00 2001 From: msoltadeo Date: Fri, 21 Aug 2020 09:31:06 -0300 Subject: [PATCH 2/2] add data type to serialno --- synthpop/census_helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synthpop/census_helpers.py b/synthpop/census_helpers.py index da39401..78331ef 100644 --- a/synthpop/census_helpers.py +++ b/synthpop/census_helpers.py @@ -174,7 +174,8 @@ def _read_csv(self, loc, **kargs): "PUMA10": "object", "PUMA00": "object", "ST": "object", - "SERIALNO": 'str' + "SERIALNO": 'str', + "serialno": 'str', }, **kargs) pums_df = pums_df.rename(columns={ 'PUMA10': 'puma10',