-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: inconsistencies/errors in quantile on empty DataFrame #14564
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
Comments
There are also inconsistencies in groupby behaviour (0.19.1):
|
@rogeriomgatto pull-requests to fix are welcome, and get things done! |
Looks like all these cases work on master (except the We can create an independent issue for the case that is not working once these regression tests are added. |
In PR #14536, I added some tests in comments, as they currently fail or give inconsistent results:
1. Empty frame with float dtype:
In 0.18.1, this gives NaNs or empty frame depending on the axis (which is correct I think):
But on master, the
axis=1
case errors (df.quantile(0.5) also gives NaNs):master:
2. Empty frame with int dtype
Opposed to float dtype giving a series of NaNs, with integers it gives an empty frame in 0.18.1:
and on master also raises the ValueError as for float with
axis=1
:3. Empty frame with datetime values
On 0.18.1 / master, it gives a series of NaNs, where this should be NaTs:
4. Frame with only only datetime columns but without
only_numeric=False
On 0.18.1, this gives an empty frame
while on master this raises the same ValueError as above:
The text was updated successfully, but these errors were encountered: