modin.pandas.Index.is_unique¶
- property Index.is_unique: bool[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.23.0/src/snowflake/snowpark/modin/plugin/extensions/index.py#L529-L563)¶
- Return if the index has unique values. - Returns:
- True if the index has all unique values, False otherwise. 
- Return type:
- bool 
 - See also - Index.has_duplicates
- Inverse method that checks if it has duplicate values. 
 - Examples - >>> idx = pd.Index([1, 5, 7, 7]) >>> idx.is_unique False - >>> idx = pd.Index([1, 5, 7]) >>> idx.is_unique True - >>> idx = pd.Index(["Watermelon", "Orange", "Apple", ... "Watermelon"]) >>> idx.is_unique False - >>> idx = pd.Index(["Orange", "Apple", ... "Watermelon"]) >>> idx.is_unique True