Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: IntervalIndex.from_arrays with int64 vs uint64 arrays #55715

Open
jbrockmendel opened this issue Oct 26, 2023 · 1 comment
Open

BUG: IntervalIndex.from_arrays with int64 vs uint64 arrays #55715

jbrockmendel opened this issue Oct 26, 2023 · 1 comment
Labels
Bug Interval Interval data type

Comments

@jbrockmendel
Copy link
Member

jbrockmendel commented Oct 26, 2023

ser = pd.Series(range(5))
ser2 = ser.astype("uint64")

ii = pd.IntervalIndex.from_arrays(ser.values, ser2.values)

>>> ii.right.dtype
dtype('uint64')

We do some casting in _ensure_simple_new_inputs to check we have matching dtypes, but looks like we miss signed-vs-unsigned cases.

@jbrockmendel jbrockmendel added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Oct 26, 2023
@lukemanley lukemanley added the Interval Interval data type label Oct 29, 2023
@theredditbandit
Copy link

Hi , I would like to work on this issue.
Could you provide some more info on the bug and what is expected in the bugfix.

@lithomas1 lithomas1 removed the Needs Triage Issue that has not been reviewed by a pandas team member label Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Interval Interval data type
Projects
None yet
Development

No branches or pull requests

4 participants