-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Timedelta.__bool__ #21485
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: Timedelta.__bool__ #21485
Conversation
Codecov Report
@@ Coverage Diff @@
## master #21485 +/- ##
=========================================
Coverage ? 91.89%
=========================================
Files ? 153
Lines ? 49604
Branches ? 0
=========================================
Hits ? 45586
Misses ? 4018
Partials ? 0
Continue to review full report at Codecov.
|
|
||
@pytest.mark.parametrize('value, expected', [ | ||
(Timedelta('10S'), True), | ||
(Timedelta('-10S'), True), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add 0S here
doc/source/whatsnew/v0.23.2.txt
Outdated
@@ -82,4 +82,5 @@ Bug Fixes | |||
|
|||
**Other** | |||
|
|||
- Bug in :class:`Timedelta` where non-zero timedeltas shorter than 1 microsecond were considered False (:issue:`21484`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you make a Datetimelike section (or Timedelta ok too)
minor comments, lgtm otherwise. |
thanks @TomAugspurger |
Closes #21484