Skip to content

Commit 3d955d1

Browse files
committed
Add issue reference
1 parent c41bf01 commit 3d955d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/categorical.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def from_codes(cls, codes, categories, ordered=False):
631631
categorical. If not given, the resulting categorical will be
632632
unordered.
633633
"""
634-
codes = np.asarray(codes)
634+
codes = np.asarray(codes) # #21767
635635
if not is_integer_dtype(codes):
636636
msg = "codes need to be array-like integers"
637637
if is_float_dtype(codes):

0 commit comments

Comments
 (0)