-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
BUG: DataFrame quantile with only datetime dtypes should provide better error message #7308
Comments
Actually, it's got nothing to do with just having one column (like my original title suggested).
Maybe I should change the
and it will still accept True and False as before. |
hmm, I think this should include datetime/timedelta by default. so |
Looks to give a reasonable result now. Could use a test
|
I think the discussion above suggests this isnt a reasonable result, that we dont want to drop datetime column here |
Nowadays the parameter is defined in the docstring as follows:
So the results df.quantile(0.5)
A 2.0
B 3.0
Name: 0.5, dtype: float64
df.quantile(0.5, numeric_only=False)
A 2.0
B 3.0
C 2014-02-28 00:00:00 So this is not a BUG anymore, it looks more like an enchancement about the argument of numeric_only defaulting to False. |
take |
The text was updated successfully, but these errors were encountered: