Skip to content

Commit 405b944

Browse files
committed
added __fspath__ to HDFStore class
1 parent 6946224 commit 405b944

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

@@ -482,6 +482,9 @@ def __contains__(self, key):
482482
return True
483483
return False
484484

485+
def __fspath__(self):
486+
return text_type(self._path)
487+
485488
def __len__(self):
486489
return len(self.groups())
487490

0 commit comments

Comments
 (0)