Skip to content

CLN: Remove int32 and float32 dtypes from IntervalTree #30598

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

Merged
merged 3 commits into from
Jan 1, 2020

Conversation

jschendel
Copy link
Member

There isn't a practical way to actually get an IntervalTree with int32/float32 dtypes since IntervalIndex is backed by two pandas indexes and we don't have a Int32Index or Float32Index. These indexes are used to create the underlying IntervalTree that backs an IntervalIndex, so we're guaranteed to have int64/float64 dtype data when initializing.

The only way that comes to mind that a user could create an IntervalTree with int32/float32 dtype would be by explicitly initializing a standalone IntervalTree with int32/float32 arrays, which doesn't seem particularly likely.

This should also help with build times as it results in 8 less node classes being generated.

Didn't add a whatsnew note since I don't think IntervalTree is user facing (could be wrong?) but can add one if desired since this is technically a breaking change.

@jschendel jschendel added Build Library building on various platforms Interval Interval data type Clean labels Jan 1, 2020
@jschendel jschendel added this to the 1.0 milestone Jan 1, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgrm. ping on green.

@jreback jreback merged commit 0be573e into pandas-dev:master Jan 1, 2020
@jreback
Copy link
Contributor

jreback commented Jan 1, 2020

thanks @jschendel

@jschendel jschendel deleted the iv-tree-drop-32bit branch January 1, 2020 21:14
hweecat pushed a commit to hweecat/pandas that referenced this pull request Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms Clean Interval Interval data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants