pandas.errors.ClosedFileError#
- exception pandas.errors.ClosedFileError[source]#
Exception is raised when trying to perform an operation on a closed HDFStore file.
ClosedFileErroris specific to operations onHDFStoreobjects. Once an HDFStore is closed, its resources are no longer available, and any further attempt to access data or perform file operations will raise this exception.See also
HDFStore.closeCloses the PyTables file handle.
HDFStore.openOpens the file in the specified mode.
HDFStore.is_openReturns a boolean indicating whether the file is open.
Examples
>>> store = pd.HDFStore("my-store", "a") >>> store.close() >>> store.keys() ... # ClosedFileError: my-store file is not open!