Skip to content

Commit 37a893d

Browse files
tuhinsharma121snitish
authored andcommitted
DOC: fix SA01,ES01 for pandas.errors.PossibleDataLossError (pandas-dev#60403)
1 parent bc09236 commit 37a893d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
117117
-i "pandas.errors.NumbaUtilError SA01" \
118118
-i "pandas.errors.OutOfBoundsTimedelta SA01" \
119119
-i "pandas.errors.PerformanceWarning SA01" \
120-
-i "pandas.errors.PossibleDataLossError SA01" \
121120
-i "pandas.errors.UndefinedVariableError PR01,SA01" \
122121
-i "pandas.errors.ValueLabelTypeMismatch SA01" \
123122
-i "pandas.infer_freq SA01" \

pandas/errors/__init__.py

+9
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,15 @@ class PossibleDataLossError(Exception):
638638
"""
639639
Exception raised when trying to open a HDFStore file when already opened.
640640
641+
This error is triggered when there is a potential risk of data loss due to
642+
conflicting operations on an HDFStore file. It serves to prevent unintended
643+
overwrites or data corruption by enforcing exclusive access to the file.
644+
645+
See Also
646+
--------
647+
HDFStore : Dict-like IO interface for storing pandas objects in PyTables.
648+
HDFStore.open : Open an HDFStore file in the specified mode.
649+
641650
Examples
642651
--------
643652
>>> store = pd.HDFStore("my-store", "a") # doctest: +SKIP

0 commit comments

Comments
 (0)