From 519476e9a039b389ac1b75517e25054264f302d3 Mon Sep 17 00:00:00 2001 From: jreback Date: Tue, 9 Jul 2013 12:29:03 -0400 Subject: [PATCH] CLN: write the attributes in a HDFStore as strings These strings are converted to bytes, previously these were written as unicode --- pandas/io/pytables.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index fdb86c43b7160..43b3197667d2b 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -1622,8 +1622,8 @@ def __unicode__(self): def set_object_info(self): """ set my pandas type & version """ - self.attrs.pandas_type = self.pandas_kind - self.attrs.pandas_version = _version + self.attrs.pandas_type = str(self.pandas_kind) + self.attrs.pandas_version = str(_version) self.set_version() def copy(self): @@ -2377,7 +2377,7 @@ def set_info(self): def set_attrs(self): """ set our table type & indexables """ - self.attrs.table_type = self.table_type + self.attrs.table_type = str(self.table_type) self.attrs.index_cols = self.index_cols() self.attrs.values_cols = self.values_cols() self.attrs.non_index_axes = self.non_index_axes