-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
COMPAT: NaT support tz_localize / tz_convert (#15830) #15868
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
Codecov Report
@@ Coverage Diff @@
## master #15868 +/- ##
==========================================
- Coverage 90.98% 90.96% -0.02%
==========================================
Files 143 143
Lines 49449 49449
==========================================
- Hits 44992 44983 -9
- Misses 4457 4466 +9
Continue to review full report at Codecov.
|
pandas/_libs/tslib.pyx
Outdated
@@ -845,6 +845,12 @@ class NaTType(_NaT): | |||
# GH 10939 | |||
return np.nan | |||
|
|||
def tz_localize(self): | |||
return NPY_NAT |
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.
this is not necessary (that's the point of the _nat_methods
code below
can you add a whatsnew note as well (add this issue number next to #15782 in the whatsnew) |
Thanks, I erased the unnecessary methods and add the wathsnew note |
thanks @atbd nice PR! |
closes #15830
git diff upstream/master --name-only -- '*.py' | flake8 --diff