Skip to content

Commit aa1c58b

Browse files
committed
Take method now gets underlying array of result to build a new extension array with.
1 parent c174833 commit aa1c58b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/numpy_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def take(
369369
)
370370
# See GH#62448.
371371
if self.dtype.kind in "iub":
372-
return type(self)(result, copy=False)
372+
return type(self)(result._ndarray, copy=False)
373373

374374
return result
375375

0 commit comments

Comments
 (0)