From 172d83fe47e3e91553c7ced8f6250098b04f1e2c Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Wed, 21 Sep 2022 10:11:14 -0700 Subject: [PATCH] DOC: Clarify exceptions that are internal only --- pandas/errors/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py index 3e4f116953cb3..3f19c3525a00c 100644 --- a/pandas/errors/__init__.py +++ b/pandas/errors/__init__.py @@ -540,6 +540,8 @@ class CategoricalConversionWarning(Warning): class LossySetitemError(Exception): """ Raised when trying to do a __setitem__ on an np.ndarray that is not lossless. + + Should not be raised by the public API. """ @@ -552,6 +554,8 @@ class NoBufferPresent(Exception): class InvalidComparison(Exception): """ Exception is raised by _validate_comparison_value to indicate an invalid comparison. + + Should not be raised by the public API. """