MCPcopy
hub / github.com/pandas-dev/pandas / close

Method close

pandas/io/pytables.py:765–771  ·  view source on GitHub ↗

Close the PyTables file handle

(self)

Source from the content-addressed store, hash-verified

763 self._handle = tables.open_file(self._path, self._mode, **kwargs)
764
765 def close(self) -> None:
766 """
767 Close the PyTables file handle
768 """
769 if self._handle is not None:
770 self._handle.close()
771 self._handle = None
772
773 @property
774 def is_open(self) -> bool:

Callers 10

read_hdfFunction · 0.95
__exit__Method · 0.95
openMethod · 0.95
test_reopen_handleFunction · 0.95
test_open_argsFunction · 0.95
test_multiple_open_closeFunction · 0.95
test_read_nokey_emptyFunction · 0.95
test_read_hdf_errorsFunction · 0.95
closeMethod · 0.45

Calls

no outgoing calls

Tested by 6

test_reopen_handleFunction · 0.76
test_open_argsFunction · 0.76
test_multiple_open_closeFunction · 0.76
test_read_nokey_emptyFunction · 0.76
test_read_hdf_errorsFunction · 0.76