Check if the Index has duplicate values.
Whether or not the Index has duplicate values.
See also
Index.is_unique
Inverse method that checks if it has unique values.
Examples
>>> idx = pd.Index([1, 5, 7, 7]) >>> idx.has_duplicates True
>>> idx = pd.Index([1, 5, 7]) >>> idx.has_duplicates False
>>> idx = pd.Index(["Watermelon", "Orange", "Apple", "Watermelon"]).astype( ... "category" ... ) >>> idx.has_duplicates True
>>> idx = pd.Index(["Orange", "Apple", "Watermelon"]).astype("category") >>> idx.has_duplicates False
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4