Skip to content

Commit 3c8b990

Browse files
committed
added __fspath__ to HDFStore class
1 parent ded19a2 commit 3c8b990

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/io/pytables.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
from pandas.core.index import _ensure_index
4545
from pandas.tools.merge import concat
4646
from pandas import compat
47-
from pandas.compat import u_safe as u, PY3, range, lrange, string_types, filter
47+
from pandas.compat import u_safe as u, PY3, range, lrange, string_types, text_type, filter
4848
from pandas.core.config import get_option
4949
from pandas.computation.pytables import Expr, maybe_expression
5050

@@ -487,6 +487,9 @@ def __contains__(self, key):
487487
return True
488488
return False
489489

490+
def __fspath__(self):
491+
return text_type(self._path)
492+
490493
def __len__(self):
491494
return len(self.groups())
492495

0 commit comments

Comments
 (0)