More flexible, faster check like is but that works through views.
Note: this is not the same as Index.identical(), which checks that metadata is also the same.
Other object to compare against.
True if both have same underlying data, False otherwise.
See also
Index.identicalWorks like Index.is_ but also checks metadata.
Examples
>>> idx1 = pd.Index(['1', '2', '3'])
>>> idx1.is_(idx1.view())
True
>>> idx1.is_(idx1.copy())
False
© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.Index.is_.html