Skip to content

Commit 4d0320c

Browse files
Marco GorelliMarcoGorelli
Marco Gorelli
authored andcommitted
Remove np.asarray, as #28762 has been fixed
1 parent dc9ed3d commit 4d0320c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/accessors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def __new__(cls, data):
322322
orig = data if is_categorical_dtype(data) else None
323323
if orig is not None:
324324
data = Series(
325-
np.asarray(orig.values),
325+
orig.values,
326326
name=orig.name,
327327
copy=False,
328328
dtype=orig.values.categories.dtype,

0 commit comments

Comments
 (0)