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

CLN: de-kludge Block.quantile #27627

Merged
merged 2 commits into from
Jul 31, 2019
Merged

Conversation

jbrockmendel
Copy link
Member

Broken off from #27626 since I decided that is poorly scoped.

@gfyoung gfyoung added Clean Internals Related to non-user accessible pandas implementation labels Jul 28, 2019
def quantile(self, qs, interpolation="linear", axis=0):
naive = self.values.view("M8[ns]")

# kludge for 2D block with 1D values
Copy link
Member

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

Copy link
Member Author

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.

Copy link
Contributor

@TomAugspurger TomAugspurger left a 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.

@jreback
Copy link
Contributor

jreback commented Jul 29, 2019

@TomAugspurger i will look soonish. but I have comments on nearly all of these PRs so pls wait.

@jbrockmendel
Copy link
Member Author

@jreback there's nothing urgent here, but you're gonna like the follow-up that comes after this and #27628.

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.

comment for followup

values = values[None, :]
else:
values = self.get_values()
values = self.get_values()
Copy link
Contributor

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()

@jreback jreback added this to the 1.0 milestone Jul 31, 2019
@jreback jreback merged commit 854a89d into pandas-dev:master Jul 31, 2019
@jbrockmendel jbrockmendel deleted the quantile branch July 31, 2019 13:27
quintusdias pushed a commit to quintusdias/pandas_dev that referenced this pull request Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Internals Related to non-user accessible pandas implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants