We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 383010f + df05e3d commit fe533e9Copy full SHA for fe533e9
pandas/io/pytables.py
@@ -1914,9 +1914,6 @@ def __unicode__(self):
1914
return "%-12.12s (shape->%s)" % (self.pandas_type, s)
1915
return self.pandas_type
1916
1917
- def __str__(self):
1918
- return self.__repr__()
1919
-
1920
def set_object_info(self):
1921
""" set my pandas type & version """
1922
self.attrs.pandas_type = str(self.pandas_kind)
pandas/io/tests/test_pytables.py
@@ -313,6 +313,16 @@ def test_repr(self):
313
repr(store)
314
str(store)
315
316
+ # storers
317
+ with ensure_clean(self.path) as store:
318
+
319
+ df = tm.makeDataFrame()
320
+ store.append('df',df)
321
322
+ s = store.get_storer('df')
323
+ repr(s)
324
+ str(s)
325
326
def test_contains(self):
327
328
with ensure_clean(self.path) as store:
0 commit comments