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 bcf965a commit 8e699edCopy full SHA for 8e699ed
pandas/core/arrays/interval.py
@@ -274,7 +274,6 @@ def __new__(
274
275
# might need to convert empty or purely na data
276
data = _maybe_convert_platform_interval(data)
277
- data = maybe_convert_numeric_to_64bit(data)
278
left, right, infer_closed = intervals_to_interval_bounds(
279
data, validate_closed=closed is None
280
)
@@ -327,7 +326,10 @@ def _ensure_simple_new_inputs(
327
326
from pandas.core.indexes.base import ensure_index
328
329
left = ensure_index(left, copy=copy)
+ left = maybe_convert_numeric_to_64bit(left)
330
+
331
right = ensure_index(right, copy=copy)
332
+ right = maybe_convert_numeric_to_64bit(right)
333
334
if closed is None and isinstance(dtype, IntervalDtype):
335
closed = dtype.closed
0 commit comments