modin.pandas.Index.intersection¶
- Index.intersection(other: Any, sort: bool = False) Index[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.21.0/src/snowflake/snowpark/modin/plugin/extensions/index.py#L2342-L2377)¶
Form the intersection of two Index objects.
This returns a new Index with elements common to the index and other.
- Parameters:
other (Index or array-like) –
sort (True, False or None, default False) –
Whether to sort the resulting index.
None : sort the result, except when self and other are equal or when the values cannot be compared.
False : do not sort the result.
True : Sort the result (which may raise TypeError).
- Returns:
A new Index with elements common to the index and other.
- Return type:
Examples