We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07148db commit c8b5852Copy full SHA for c8b5852
pandas/core/algorithms.py
@@ -353,11 +353,8 @@ def unique(values):
353
354
values = _ensure_arraylike(values)
355
356
- # categorical is a fast-path
357
- # this will coerce Categorical, CategoricalIndex,
358
- # and category dtypes Series to same return of Category
359
if is_extension_array_dtype(values):
360
- values = getattr(values, '.values', values)
+ # Dispatch to extension dtype's unique.
361
return values.unique()
362
363
original = values
0 commit comments