-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
CLN: de-kludge Block.quantile #27627
Conversation
def quantile(self, qs, interpolation="linear", axis=0): | ||
naive = self.values.view("M8[ns]") | ||
|
||
# kludge for 2D block with 1D values |
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.
"kludge" - am I to assume that you're planning on cleaning this up or splitting more cleanly in the future? One-liners like these don't seem "super-kludgy" IMO
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.
Yes, once we allow 2D EAs this entire method will be unnecessary.
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.
LGTM. @jreback any thoughts? Otherwise I'd recommend self-merging in 24 hours @jbrockmendel.
@TomAugspurger i will look soonish. but I have comments on nearly all of these PRs so pls wait. |
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.
comment for followup
values = values[None, :] | ||
else: | ||
values = self.get_values() | ||
values = self.get_values() |
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.
grr I really dis-like strongly get_values()
Broken off from #27626 since I decided that is poorly scoped.