Uniques are returned in order of appearance. Hash table-based unique, therefore does NOT sort.
Returns:
ndarray or ExtensionArray
The unique values returned as a NumPy array. See Notes.
See also:
Series.drop_duplicates
Return Series with duplicate values removed.
unique
Top-level unique method for any 1-d array-like object.
Index.unique
Return Index with unique values from an Index object.
Notes:
Returns the unique values as a NumPy array. In case of an extension-array backed Series, a new ExtensionArray of that type with just the unique values is returned. This includes