We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92c1fe4 commit 2fd957cCopy full SHA for 2fd957c
pandas/core/array_algos/take.py
@@ -94,7 +94,7 @@ def take_nd(
94
"""
95
if fill_value is lib.no_default:
96
fill_value = na_value_for_dtype(arr.dtype, compat=False)
97
- elif arr.dtype.kind in "mM":
+ elif isinstance(arr.dtype, np.dtype) and arr.dtype.kind in "mM":
98
dtype, fill_value = maybe_promote(arr.dtype, fill_value)
99
if arr.dtype != dtype:
100
# EA.take is strict about returning a new object of the same type
0 commit comments