Skip to content
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 fails on datetime values #6965

Closed
TomAugspurger opened this issue Apr 25, 2014 · 2 comments · Fixed by #7093
Closed

BUG: DataFrame.quantile fails on datetime values #6965

TomAugspurger opened this issue Apr 25, 2014 · 2 comments · Fixed by #7093
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Numeric Operations Arithmetic, Comparison, and Logical operations Timeseries
Milestone

Comments

@TomAugspurger
Copy link
Contributor

In [2]: df = DataFrame({'a': pd.to_datetime(['2010', '2011']), 'b': [0, 5]})

In [3]: df.quantile(.5, numeric_only=False)
Out[3]: 
a    1.278072e+18
b    1.278072e+18
dtype: float64

Series handles things fine.

We need to do a view('i8') on the date time array somewhere, but I had trouble just sticking it inside of the f that gets passed to data.apply(f, ...)

@jreback jreback added this to the 0.15.0 milestone Apr 25, 2014
@jreback
Copy link
Contributor

jreback commented Apr 25, 2014

if you can do for 0.14 great

@TomAugspurger
Copy link
Contributor Author

Yeah, I'm working on this; trying to refactoring stuff to the block level.

@jreback jreback modified the milestones: 0.14.0, 0.15.0 May 10, 2014
TomAugspurger pushed a commit to TomAugspurger/pandas that referenced this issue May 10, 2014
Closes pandas-dev#6965

previously returned nonsense
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Numeric Operations Arithmetic, Comparison, and Logical operations Timeseries
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants