-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REF: DatetimeIndex constructor fixups #23916
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
Conversation
Hello @jbrockmendel! Thanks for submitting the PR.
|
Codecov Report
@@ Coverage Diff @@
## master #23916 +/- ##
=======================================
Coverage 92.29% 92.29%
=======================================
Files 161 161
Lines 51500 51500
=======================================
Hits 47533 47533
Misses 3967 3967
Continue to review full report at Codecov.
|
@@ -550,7 +550,7 @@ def test_overflow(self): | |||
|
|||
# mean | |||
result = (s - s.min()).mean() | |||
expected = pd.Timedelta((pd.DatetimeIndex((s - s.min())).asi8 / len(s) | |||
expected = pd.Timedelta((pd.TimedeltaIndex((s - s.min())).asi8 / len(s) |
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.
Why was this incorrect? How was the mistake caught in the first place?
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.
Caught it when making it warn in #23675.
thanks @jbrockmendel |
Small non-central pieces broken off from #23675.