Skip to content

Commit 8b05baf

Browse files
tuhinsharma121snitish
authored andcommitted
DOC: fix SA01 for pandas.errors.UnsortedIndexError (pandas-dev#60404)
1 parent 4e17fc3 commit 8b05baf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
119119
-i "pandas.errors.PerformanceWarning SA01" \
120120
-i "pandas.errors.PossibleDataLossError SA01" \
121121
-i "pandas.errors.UndefinedVariableError PR01,SA01" \
122-
-i "pandas.errors.UnsortedIndexError SA01" \
123122
-i "pandas.errors.ValueLabelTypeMismatch SA01" \
124123
-i "pandas.infer_freq SA01" \
125124
-i "pandas.io.json.build_table_schema PR07,RT03,SA01" \

pandas/errors/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -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(

0 commit comments

Comments
 (0)