Skip to content

Commit 325be92

Browse files
committed
Fix comment
1 parent 2173c89 commit 325be92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/arrays/categorical.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ def __init__(self, values, categories=None, ordered=None, dtype=None,
348348
dtype = values.dtype._from_categorical_dtype(values.dtype,
349349
categories, ordered)
350350

351-
# GH23814, for perf, if no optional params used and values already
352-
# an instance of Categorical, set values to codes like fastpath
351+
# GH23814, for perf, if values._values already an instance of
352+
# Categorical, set values to codes, and run fastpath
353353
if (isinstance(values, (ABCSeries, ABCIndexClass)) and
354354
isinstance(values._values, type(self))):
355355
values = values._values.codes.copy()

0 commit comments

Comments
 (0)