Skip to content

Commit b3e5338

Browse files
committed
Merge pull request #4178 from jreback/hdf_3k
CLN: write the attributes in a HDFStore as strings
2 parents 4b18372 + 519476e commit b3e5338

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/io/pytables.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1622,8 +1622,8 @@ def __unicode__(self):
16221622

16231623
def set_object_info(self):
16241624
""" set my pandas type & version """
1625-
self.attrs.pandas_type = self.pandas_kind
1626-
self.attrs.pandas_version = _version
1625+
self.attrs.pandas_type = str(self.pandas_kind)
1626+
self.attrs.pandas_version = str(_version)
16271627
self.set_version()
16281628

16291629
def copy(self):
@@ -2377,7 +2377,7 @@ def set_info(self):
23772377

23782378
def set_attrs(self):
23792379
""" set our table type & indexables """
2380-
self.attrs.table_type = self.table_type
2380+
self.attrs.table_type = str(self.table_type)
23812381
self.attrs.index_cols = self.index_cols()
23822382
self.attrs.values_cols = self.values_cols()
23832383
self.attrs.non_index_axes = self.non_index_axes

0 commit comments

Comments
 (0)