Skip to content

Commit

Permalink
DOC: fix SA01, ES01 for pandas.errors.ClosedFileError (#59924)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 authored Sep 30, 2024
1 parent d66d582 commit 111ff84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.errors.CSSWarning SA01" \
-i "pandas.errors.CategoricalConversionWarning SA01" \
-i "pandas.errors.ChainedAssignmentError SA01" \
-i "pandas.errors.ClosedFileError SA01" \
-i "pandas.errors.DataError SA01" \
-i "pandas.errors.DuplicateLabelError SA01" \
-i "pandas.errors.IntCastingNaNError SA01" \
Expand Down
10 changes: 10 additions & 0 deletions pandas/errors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,16 @@ class ClosedFileError(Exception):
"""
Exception is raised when trying to perform an operation on a closed HDFStore file.
``ClosedFileError`` is specific to operations on ``HDFStore`` objects. 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.close : Closes the PyTables file handle.
HDFStore.open : Opens the file in the specified mode.
HDFStore.is_open : Returns a boolean indicating whether the file is open.
Examples
--------
>>> store = pd.HDFStore("my-store", "a") # doctest: +SKIP
Expand Down

0 comments on commit 111ff84

Please sign in to comment.