Skip to content

Commit

Permalink
DOC: fix SA01,ES01 for pandas.errors.PossibleDataLossError (#60403)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 authored Nov 25, 2024
1 parent cbd90ba commit bca4b1c
Show file tree
Hide file tree
Showing 2 changed files with 9 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 @@ -117,7 +117,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.errors.NumbaUtilError SA01" \
-i "pandas.errors.OutOfBoundsTimedelta SA01" \
-i "pandas.errors.PerformanceWarning SA01" \
-i "pandas.errors.PossibleDataLossError SA01" \
-i "pandas.errors.UndefinedVariableError PR01,SA01" \
-i "pandas.errors.ValueLabelTypeMismatch SA01" \
-i "pandas.infer_freq SA01" \
Expand Down
9 changes: 9 additions & 0 deletions pandas/errors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,15 @@ class PossibleDataLossError(Exception):
"""
Exception raised when trying to open a HDFStore file when already opened.
This error is triggered when there is a potential risk of data loss due to
conflicting operations on an HDFStore file. It serves to prevent unintended
overwrites or data corruption by enforcing exclusive access to the file.
See Also
--------
HDFStore : Dict-like IO interface for storing pandas objects in PyTables.
HDFStore.open : Open an HDFStore file in the specified mode.
Examples
--------
>>> store = pd.HDFStore("my-store", "a") # doctest: +SKIP
Expand Down

0 comments on commit bca4b1c

Please sign in to comment.