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: inconsistency in some timedelta64[ns] reduction operations #6462

Closed
jreback opened this issue Feb 24, 2014 · 0 comments · Fixed by #6475
Closed

BUG: inconsistency in some timedelta64[ns] reduction operations #6462

jreback opened this issue Feb 24, 2014 · 0 comments · Fixed by #6475
Assignees
Labels
Bug Numeric Operations Arithmetic, Comparison, and Logical operations Timedelta Timedelta data type
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Feb 24, 2014

In [1]: s = pd.to_timedelta(range(4),unit='d')

In [2]: s
Out[2]: 
0   0 days
1   1 days
2   2 days
3   3 days
dtype: timedelta64[ns]

In [3]: s.mean()
Out[3]: 
0   1 days, 12:00:00
dtype: timedelta64[ns]

In [4]: s.sum()
Out[4]: 518400000000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Numeric Operations Arithmetic, Comparison, and Logical operations Timedelta Timedelta data type
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant