Skip to content
8 changes: 8 additions & 0 deletions pandas/errors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,10 @@ class CategoricalConversionWarning(Warning):
class LossySetitemError(Exception):
"""
Raised when trying to do a __setitem__ on an np.ndarray that is not lossless.

Examples
--------
This is an internal error. Please do not use it.
"""


Expand All @@ -698,6 +702,10 @@ class NoBufferPresent(Exception):
class InvalidComparison(Exception):
"""
Exception is raised by _validate_comparison_value to indicate an invalid comparison.

Examples
--------
This is an internal error. Please do not use it.
"""


Expand Down
3 changes: 3 additions & 0 deletions scripts/validate_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
"Styler.template_latex",
"Styler.template_string",
"Styler.loader",
"errors.InvalidComparison",
"errors.LossySetitemError",
"",
}
PRIVATE_CLASSES = ["NDFrame", "IndexOpsMixin"]
ERROR_MSGS = {
Expand Down