Skip to content

Commit

Permalink
DOC: fix SA01 for pandas.errors.UnsortedIndexError (pandas-dev#60404)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 authored Nov 25, 2024
1 parent a2ceb52 commit e78df6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.errors.PerformanceWarning SA01" \
-i "pandas.errors.PossibleDataLossError SA01" \
-i "pandas.errors.UndefinedVariableError PR01,SA01" \
-i "pandas.errors.UnsortedIndexError SA01" \
-i "pandas.errors.ValueLabelTypeMismatch SA01" \
-i "pandas.infer_freq SA01" \
-i "pandas.io.json.build_table_schema PR07,RT03,SA01" \
Expand Down
5 changes: 5 additions & 0 deletions pandas/errors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ class UnsortedIndexError(KeyError):
Subclass of `KeyError`.
See Also
--------
DataFrame.sort_index : Sort a DataFrame by its index.
DataFrame.set_index : Set the DataFrame index using existing columns.
Examples
--------
>>> df = pd.DataFrame(
Expand Down

0 comments on commit e78df6f

Please sign in to comment.