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