Skip to content

REGRP: Series.quantile returns NaN #13098

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

Closed
gieseke opened this issue May 5, 2016 · 2 comments
Closed

REGRP: Series.quantile returns NaN #13098

gieseke opened this issue May 5, 2016 · 2 comments
Labels
Bug Numeric Operations Arithmetic, Comparison, and Logical operations Regression Functionality that used to work in a prior pandas version
Milestone

Comments

@gieseke
Copy link

gieseke commented May 5, 2016

Code Sample, a copy-pastable example if possible

import pandas as pd
import numpy
s = pd.Series([1, 2, 3, 4, numpy.nan])
s.quantile(0.5)
nan

Expected Output

I would expect 2.5 as output (as with version 0.17.1).

output of pd.show_versions()

commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-85-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: de_DE.UTF-8

pandas: 0.18.1
nose: None
pip: 1.5.4
setuptools: 2.2
Cython: None
numpy: 1.11.0
scipy: 0.16.1
statsmodels: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: None

@gieseke gieseke changed the title Series.quantile returns Series.quantile returns NaN May 5, 2016
@jreback
Copy link
Contributor

jreback commented May 5, 2016

Hmm, this did break somewhere.

In [1]: s = pd.Series([1, 2, 3, 4, numpy.nan])

In [2]: s.quantile(0.5)
Out[2]: 2.5

In [3]: pd.__version__
Out[3]: u'0.18.0'

@jreback jreback added Bug Regression Functionality that used to work in a prior pandas version Numeric Operations Arithmetic, Comparison, and Logical operations labels May 5, 2016
@jreback jreback changed the title Series.quantile returns NaN REGRP: Series.quantile returns NaN May 5, 2016
@jreback jreback added this to the 0.18.2 milestone May 5, 2016
@jreback
Copy link
Contributor

jreback commented May 5, 2016

xref #12772

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Numeric Operations Arithmetic, Comparison, and Logical operations Regression Functionality that used to work in a prior pandas version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants