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 5cfbc88 commit d38b66cCopy full SHA for d38b66c
pandas/core/arrays/interval.py
@@ -269,7 +269,6 @@ def __new__(
269
270
# might need to convert empty or purely na data
271
data = _maybe_convert_platform_interval(data)
272
- data = maybe_convert_numeric_to_64bit(data)
273
left, right, infer_closed = intervals_to_interval_bounds(
274
data, validate_closed=closed is None
275
)
@@ -307,7 +306,10 @@ def _simple_new(
307
306
from pandas.core.indexes.base import ensure_index
308
309
left = ensure_index(left, copy=copy)
+ left = maybe_convert_numeric_to_64bit(left)
310
+
311
right = ensure_index(right, copy=copy)
312
+ right = maybe_convert_numeric_to_64bit(right)
313
314
if dtype is not None:
315
# GH 19262: dtype must be an IntervalDtype to override inferred
0 commit comments