Skip to content

Commit 7fa8ca8

Browse files
KeiOshimapmhatre1
authored andcommitted
DOC: ficing PR01 and SA01 issue for Index: Identical (pandas-dev#58442)
* DOC: ficing PR01 and SA01 issue for Index: Identical * fixing EXpected to fail issue
1 parent 6199cbd commit 7fa8ca8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
9797
-i "pandas.Index.get_indexer_for PR01,SA01" \
9898
-i "pandas.Index.get_indexer_non_unique PR07,SA01" \
9999
-i "pandas.Index.get_loc PR07,RT03,SA01" \
100-
-i "pandas.Index.identical PR01,SA01" \
101100
-i "pandas.Index.join PR07,RT03,SA01" \
102101
-i "pandas.Index.names GL08" \
103102
-i "pandas.Index.putmask PR01,RT03" \

pandas/core/indexes/base.py

+11
Original file line numberDiff line numberDiff line change
@@ -5325,12 +5325,23 @@ def identical(self, other) -> bool:
53255325
"""
53265326
Similar to equals, but checks that object attributes and types are also equal.
53275327
5328+
Parameters
5329+
----------
5330+
other : Index
5331+
The Index object you want to compare with the current Index object.
5332+
53285333
Returns
53295334
-------
53305335
bool
53315336
If two Index objects have equal elements and same type True,
53325337
otherwise False.
53335338
5339+
See Also
5340+
--------
5341+
Index.equals: Determine if two Index object are equal.
5342+
Index.has_duplicates: Check if the Index has duplicate values.
5343+
Index.is_unique: Return if the index has unique values.
5344+
53345345
Examples
53355346
--------
53365347
>>> idx1 = pd.Index(["1", "2", "3"])

0 commit comments

Comments
 (0)