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 d562eef commit aeb0dd7Copy full SHA for aeb0dd7
pandas/core/arrays/interval.py
@@ -48,6 +48,7 @@
48
49
from pandas.core.dtypes.cast import LossySetitemError
50
from pandas.core.dtypes.common import (
51
+ is_array_like,
52
is_categorical_dtype,
53
is_dtype_equal,
54
is_float_dtype,
@@ -181,6 +182,9 @@
181
182
183
def maybe_convert_numeric_to_64bit(arr: NumpyIndexT) -> NumpyIndexT:
184
# IntervalTree only supports 64 bit numpy array
185
+
186
+ if not is_array_like(arr):
187
+ return arr
188
dtype = arr.dtype
189
if not np.issubclass_(dtype.type, np.number):
190
return arr
0 commit comments