-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Revert "REF: back IntervalArray by a single ndarray (#37047)" #38024
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
Revert "REF: back IntervalArray by a single ndarray (#37047)" #38024
Conversation
This reverts commit 9cb3723.
I'll take a look, tentatively looks OK. By funny coincidence, I just got the first of the promised perf improvements working. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok with the change back.
left = left.astype(dtype.subtype) | ||
right = right.astype(dtype.subtype) | ||
|
||
# coerce dtypes to match if needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you factor this out into a function (maybe_cast_inputs), this is crazy otherwise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how it was before (I am just reverting / fixing conflicts). I prefer to keep this PR a clean revert, and do any other refactor as follow-up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i c ok.
@jbrockmendel ok here? |
looks fine |
Do you have a branch for it that you can push? I am curious to see whether the principles of the speed-up also couldn't be applied to the "2 1D-arrays" model |
shortly, i hope. The approach is to do |
I can imagine that an additional copy to create the combined array could still be worth it compared to casting to object |
This reverts commit 9cb3723.
See discussion in #37047
@jbrockmendel can you give this a check? (there were already several conflicts)