Skip to content

REF: simplify BlockManager.quantile #39618

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
Feb 8, 2021

Conversation

jbrockmendel
Copy link
Member

Handle the scalar-qs case early on in DataFrame.quantile, hugely simplifies BlockManager.quantile and to a lesser extent Block.quantile

@jreback jreback added the Refactor Internal refactoring of code label Feb 7, 2021
@jreback jreback added this to the 1.3 milestone Feb 7, 2021
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.

looks good some comments


axes, blocks = [], []
blocks = []
Copy link
Contributor

Choose a reason for hiding this comment

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

can you make a list comprehension

Copy link
Member Author

Choose a reason for hiding this comment

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

sure

@jreback
Copy link
Contributor

jreback commented Feb 7, 2021

lgtm ping on green

@jbrockmendel
Copy link
Member Author

ping

@jreback jreback merged commit 9a678df into pandas-dev:master Feb 8, 2021
@jbrockmendel jbrockmendel deleted the ref-mgr-quantile branch February 8, 2021 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants