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