We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This should work:
with pandas.HDFStore('file.h5') as f: print(f)
as a more convenient form of
with contextlib.closing(pandas.HDFStore('file.h5')) as f: print(f)
AFAIK this is a easy as adding the following to HDFStore
HDFStore
def _enter_(self): pass def _exit_(self): self.close()