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

Timedelta.__bool__ incorrect for nanosecond-only timedeltas #21484

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

Comments

Projects
None yet
1 participant
@TomAugspurger
Copy link
Contributor

TomAugspurger commented Jun 14, 2018

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 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 added a commit that referenced this issue Jun 18, 2018

alimcmaster1 added a commit to alimcmaster1/pandas that referenced this issue Jun 28, 2018

alimcmaster1 added a commit to alimcmaster1/pandas that referenced this issue Jun 28, 2018

jorisvandenbossche added a commit that referenced this issue Jun 29, 2018

BUG: Timedelta.__bool__ (#21485)
Closes #21484

(cherry picked from commit d5a1232)

jorisvandenbossche added a commit that referenced this issue Jul 2, 2018

BUG: Timedelta.__bool__ (#21485)
Closes #21484

(cherry picked from commit d5a1232)

Sup3rGeo added 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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.