Skip to content

Commit c8b5852

Browse files
committed
Update comment, remove buggy line
1 parent 07148db commit c8b5852

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/core/algorithms.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,8 @@ def unique(values):
353353

354354
values = _ensure_arraylike(values)
355355

356-
# categorical is a fast-path
357-
# this will coerce Categorical, CategoricalIndex,
358-
# and category dtypes Series to same return of Category
359356
if is_extension_array_dtype(values):
360-
values = getattr(values, '.values', values)
357+
# Dispatch to extension dtype's unique.
361358
return values.unique()
362359

363360
original = values

0 commit comments

Comments
 (0)