xorbits.pandas.Index.identical#

final Index.identical(other) bool[源代码]#

Similar to equals, but checks that object attributes and types are also equal.

返回

If two Index objects have equal elements and same type True, otherwise False.

返回类型

bool

实际案例

>>> idx1 = pd.Index(['1', '2', '3'])  
>>> idx2 = pd.Index(['1', '2', '3'])  
>>> idx2.identical(idx1)  
True
>>> idx1 = pd.Index(['1', '2', '3'], name="A")  
>>> idx2 = pd.Index(['1', '2', '3'], name="B")  
>>> idx2.identical(idx1)  
False

警告

This method has not been implemented yet. Xorbits will try to execute it with pandas.

This docstring was copied from pandas.core.indexes.base.Index.