From 606c0c07393d564d3c9a5795f3597e8bbc884d47 Mon Sep 17 00:00:00 2001 From: systemshift <42102034+systemshift@users.noreply.github.com> Date: Thu, 14 Nov 2019 08:35:04 -0800 Subject: [PATCH] drop python 2.7 from serialize.py (#812) * drop python 2.7 from serialize.py * update changelog --- docs/source/changelog.rst | 1 + featuretools/entityset/serialize.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index 8ec64c15b3..d8a9a873b1 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -6,6 +6,7 @@ Changelog * Enhancements * Fixes * Changes + * Remove python 2.7 support from serialize.py (:pr:`812`) * Documentation Changes * remove python 2.7 support and add 3.7 in install.rst (:pr:`805`) * Fix import error in docs (:pr:`803`) diff --git a/featuretools/entityset/serialize.py b/featuretools/entityset/serialize.py index 92b6514008..406eead10a 100644 --- a/featuretools/entityset/serialize.py +++ b/featuretools/entityset/serialize.py @@ -95,7 +95,6 @@ def write_entity_data(entity, path, format='csv', **kwargs): df = entity.df.copy() columns = df.select_dtypes('object').columns df[columns] = df[columns].astype('unicode') - df.columns = df.columns.astype('unicode') # ensures string column names for python 2.7 df.to_parquet(file, **kwargs) elif format == 'pickle': entity.df.to_pickle(file, **kwargs)