BUG: RuntimeWarning
emitted when computing quantile
on all pd.NA
Series
#50681
Labels
Milestone
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
When running the above snippet the following
RuntimeWarning
is emittedThis appears to be a result of this change https://numpy.org/doc/stable/release/1.24.0-notes.html#numpy-now-gives-floating-point-errors-in-casts in the latest
numpy=1.24
release (warnings aren't emitted when using older version ofnumpy
).I should also note that this seems to only impact
Series
that only containpd.NA
. If I, for example, uses = pd.Series([1, 2, 3, pd.NA], dtype="Int64")
in the above snippet no warning is emitted.Expected Behavior
Naively I wouldn't expect a warning to be emitted to
pandas
users. This seems like the result of an internal implementation detail.Installed Versions
The text was updated successfully, but these errors were encountered: