We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b18372 + 519476e commit b3e5338Copy full SHA for b3e5338
pandas/io/pytables.py
@@ -1622,8 +1622,8 @@ def __unicode__(self):
1622
1623
def set_object_info(self):
1624
""" set my pandas type & version """
1625
- self.attrs.pandas_type = self.pandas_kind
1626
- self.attrs.pandas_version = _version
+ self.attrs.pandas_type = str(self.pandas_kind)
+ self.attrs.pandas_version = str(_version)
1627
self.set_version()
1628
1629
def copy(self):
@@ -2377,7 +2377,7 @@ def set_info(self):
2377
2378
def set_attrs(self):
2379
""" set our table type & indexables """
2380
- self.attrs.table_type = self.table_type
+ self.attrs.table_type = str(self.table_type)
2381
self.attrs.index_cols = self.index_cols()
2382
self.attrs.values_cols = self.values_cols()
2383
self.attrs.non_index_axes = self.non_index_axes
0 commit comments