@@ -100,6 +100,11 @@ class UnsortedIndexError(KeyError):
100100
101101 Subclass of `KeyError`.
102102
103+ See Also
104+ --------
105+ DataFrame.sort_index : Sort a DataFrame by its index.
106+ DataFrame.set_index : Set the DataFrame index using existing columns.
107+
103108 Examples
104109 --------
105110 >>> df = pd.DataFrame(
@@ -388,6 +393,19 @@ class DuplicateLabelError(ValueError):
388393 """
389394 Error raised when an operation would introduce duplicate labels.
390395
396+ This error is typically encountered when performing operations on objects
397+ with `allows_duplicate_labels=False` and the operation would result in
398+ duplicate labels in the index. Duplicate labels can lead to ambiguities
399+ in indexing and reduce data integrity.
400+
401+ See Also
402+ --------
403+ Series.set_flags : Return a new ``Series`` object with updated flags.
404+ DataFrame.set_flags : Return a new ``DataFrame`` object with updated flags.
405+ Series.reindex : Conform ``Series`` object to new index with optional filling logic.
406+ DataFrame.reindex : Conform ``DataFrame`` object to new index with optional filling
407+ logic.
408+
391409 Examples
392410 --------
393411 >>> s = pd.Series([0, 1, 2], index=["a", "b", "c"]).set_flags(
@@ -407,6 +425,16 @@ class InvalidIndexError(Exception):
407425 """
408426 Exception raised when attempting to use an invalid index key.
409427
428+ This exception is triggered when a user attempts to access or manipulate
429+ data in a pandas DataFrame or Series using an index key that is not valid
430+ for the given object. This may occur in cases such as using a malformed
431+ slice, a mismatched key for a ``MultiIndex``, or attempting to access an index
432+ element that does not exist.
433+
434+ See Also
435+ --------
436+ MultiIndex : A multi-level, or hierarchical, index object for pandas objects.
437+
410438 Examples
411439 --------
412440 >>> idx = pd.MultiIndex.from_product([["x", "y"], [0, 1]])
@@ -510,6 +538,11 @@ class NumExprClobberingError(NameError):
510538 to 'numexpr'. 'numexpr' is the default engine value for these methods if the
511539 numexpr package is installed.
512540
541+ See Also
542+ --------
543+ eval : Evaluate a Python expression as a string using various backends.
544+ DataFrame.query : Query the columns of a DataFrame with a boolean expression.
545+
513546 Examples
514547 --------
515548 >>> df = pd.DataFrame({"abs": [1, 1, 1]})
@@ -633,6 +666,15 @@ class PossibleDataLossError(Exception):
633666 """
634667 Exception raised when trying to open a HDFStore file when already opened.
635668
669+ This error is triggered when there is a potential risk of data loss due to
670+ conflicting operations on an HDFStore file. It serves to prevent unintended
671+ overwrites or data corruption by enforcing exclusive access to the file.
672+
673+ See Also
674+ --------
675+ HDFStore : Dict-like IO interface for storing pandas objects in PyTables.
676+ HDFStore.open : Open an HDFStore file in the specified mode.
677+
636678 Examples
637679 --------
638680 >>> store = pd.HDFStore("my-store", "a") # doctest: +SKIP
0 commit comments