We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ser = pd.Series([], dtype="m8[ns]") >>> ser.sum() NaT >>> pd.Index(ser).sum() NaT >>> ser.array.sum() NaT >>> ser.to_frame().sum() 0 0 days dtype: timedelta64[ns]
I think zero makes more sense. Easy fix if we have consensus.
The text was updated successfully, but these errors were encountered:
this needs to use min_count and return 0 or NaT based on that
Sorry, something went wrong.
BUG: Series[td64].sum() wrong on empty series, closes pandas-dev#37151
fda979e
BUG: Series[td64].sum() wrong on empty series, closes #37151 (#37394)
428f33c
BUG: Series[td64].sum() wrong on empty series, closes pandas-dev#37151 (
96b5a17
pandas-dev#37394)
09b0d0f
Successfully merging a pull request may close this issue.
I think zero makes more sense. Easy fix if we have consensus.
The text was updated successfully, but these errors were encountered: