Skip to content

Timedelta.__bool__ incorrect for nanosecond-only timedeltas #21484

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

Closed
TomAugspurger opened this issue Jun 14, 2018 · 0 comments
Closed

Timedelta.__bool__ incorrect for nanosecond-only timedeltas #21484

TomAugspurger opened this issue Jun 14, 2018 · 0 comments
Labels
Timedelta Timedelta data type
Milestone

Comments

@TomAugspurger
Copy link
Contributor

In [3]: bool(pd.Timedelta(nanoseconds=1))
Out[3]: False

In [4]: bool(pd.Timedelta(microseconds=1))
Out[4]: True

pr coming shortly.

@TomAugspurger TomAugspurger added this to the 0.23.2 milestone Jun 14, 2018
@TomAugspurger TomAugspurger added the Timedelta Timedelta data type label Jun 14, 2018
TomAugspurger added a commit to TomAugspurger/pandas that referenced this issue Jun 14, 2018
TomAugspurger added a commit to TomAugspurger/pandas that referenced this issue Jun 14, 2018
jreback pushed a commit that referenced this issue Jun 18, 2018
jorisvandenbossche pushed a commit that referenced this issue Jun 29, 2018
Closes #21484

(cherry picked from commit d5a1232)
jorisvandenbossche pushed a commit that referenced this issue Jul 2, 2018
Closes #21484

(cherry picked from commit d5a1232)
Sup3rGeo pushed a commit to Sup3rGeo/pandas that referenced this issue Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Timedelta Timedelta data type
Projects
None yet
Development

No branches or pull requests

1 participant