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: consolidate Series.quantile and DataFrame.quantile #12469

Closed
wants to merge 1 commit into from

Conversation

sergeibernstein
Copy link

@quantology
Copy link

Collabed with @sergeibernstein on this, commenting here for alerts on any issues.

@jreback jreback added the Clean label Feb 26, 2016
values = arr.astype(float)
values = values[notnull(values)]
if len(values) == 0:
return NA
Copy link
Contributor

Choose a reason for hiding this comment

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

use np.nan here

"are not supported in numpy < 1.9")

def f(arr, per, interpolation):
boxer = com.i8_boxer(arr) \
Copy link
Contributor

Choose a reason for hiding this comment

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

you can combine these in 1
its either a needs_i8_conversion (where you need a boxer), or its not (and we upcast to float)

@jreback
Copy link
Contributor

jreback commented Feb 27, 2016

can you rebase on master, and some PEP errors. thxs.

jreback pushed a commit to jreback/pandas that referenced this pull request Apr 3, 2016
CLN: clean up quantile & move to BlockManager

closes pandas-dev#12741
closes pandas-dev#12772
closes pandas-dev#12469
closes pandas-dev#12752
@jreback jreback closed this in 36a8bd9 Apr 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLN: consolidate Series.quantile / DataFrame.quantile
3 participants