BUG: GroupBy's quantile incompatible with pd.NA #42849
Labels
Bug
Groupby
NA - MaskedArrays
Related to pd.NA and nullable extension arrays
quantile
quantile method
Regression
Functionality that used to work in a prior pandas version
Milestone
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Firstly, here's a working example using the default dtypes:
To contrast, if I use the Pandas dtypes, the codef ails
What is odd is that the quantile function works fine with if we avoid using groupby:
Problem description
I would have expected that change from the default
float64
type topd.Float64Dtype
should produce the same results with theNAN
values being treated in the same way.Output of
pd.show_versions()
commit : c7f7443
python : 3.9.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.13.6-zen1-1-zen
Version : #1 ZEN SMP PREEMPT Thu, 29 Jul 2021 00:21:08 +0000
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_AU.UTF-8
LOCALE : en_AU.UTF-8
pandas : 1.3.1
numpy : 1.21.1
pytz : 2021.1
dateutil : 2.8.2
pip : 21.1.3
setuptools : 57.1.0
Cython : None
pytest : 6.2.4
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.0.1
IPython : 7.26.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.7.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
The text was updated successfully, but these errors were encountered: