Skip to content

Commit

Permalink
API:move use of maybe_convert_numeric_to_64bit to IntervalArray._simp…
Browse files Browse the repository at this point in the history
…le_new
  • Loading branch information
topper-123 authored and Terji Petersen committed Dec 23, 2022
1 parent aeb0dd7 commit f58478b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pandas/core/arrays/interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ def __new__(

# might need to convert empty or purely na data
data = _maybe_convert_platform_interval(data)
data = maybe_convert_numeric_to_64bit(data)
left, right, infer_closed = intervals_to_interval_bounds(
data, validate_closed=closed is None
)
Expand Down Expand Up @@ -307,7 +306,10 @@ def _simple_new(
from pandas.core.indexes.base import ensure_index

left = ensure_index(left, copy=copy)
left = maybe_convert_numeric_to_64bit(left)

right = ensure_index(right, copy=copy)
right = maybe_convert_numeric_to_64bit(right)

if dtype is not None:
# GH 19262: dtype must be an IntervalDtype to override inferred
Expand Down

0 comments on commit f58478b

Please sign in to comment.