Skip to content

Commit

Permalink
DOC: ficing PR01 and SA01 issue for Index: Identical (#58442)
Browse files Browse the repository at this point in the history
* DOC: ficing PR01 and SA01 issue for Index: Identical

* fixing EXpected to fail issue
  • Loading branch information
KeiOshima committed Apr 30, 2024
1 parent 46bd88f commit 78a2ef2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Expand Up @@ -97,7 +97,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Index.get_indexer_for PR01,SA01" \
-i "pandas.Index.get_indexer_non_unique PR07,SA01" \
-i "pandas.Index.get_loc PR07,RT03,SA01" \
-i "pandas.Index.identical PR01,SA01" \
-i "pandas.Index.join PR07,RT03,SA01" \
-i "pandas.Index.names GL08" \
-i "pandas.Index.putmask PR01,RT03" \
Expand Down
11 changes: 11 additions & 0 deletions pandas/core/indexes/base.py
Expand Up @@ -5344,12 +5344,23 @@ def identical(self, other) -> bool:
"""
Similar to equals, but checks that object attributes and types are also equal.
Parameters
----------
other : Index
The Index object you want to compare with the current Index object.
Returns
-------
bool
If two Index objects have equal elements and same type True,
otherwise False.
See Also
--------
Index.equals: Determine if two Index object are equal.
Index.has_duplicates: Check if the Index has duplicate values.
Index.is_unique: Return if the index has unique values.
Examples
--------
>>> idx1 = pd.Index(["1", "2", "3"])
Expand Down

0 comments on commit 78a2ef2

Please sign in to comment.