-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: add Timestamp.to_datetime64 #9255
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
hmm, its called |
|
hmm that could be useful |
Any comments on this PR? (Tests are green) |
@@ -136,6 +136,20 @@ def test_constructor_with_stringoffset(self): | |||
self.assertEqual(repr(result), expected_repr) | |||
self.assertEqual(result, eval(repr(result))) | |||
|
|||
def test_conversion(self): | |||
ts = Timestamp('2000-01-01') |
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.
add the issue as a comment here
trivial comment. looks good otherwise. you are picking up pieces from those other pr's yes? |
@shoyer yep. you had some good stuff in there IIRC. |
ENH: add Timestamp.to_datetime64
This PR adds a
Timestamp.to_datetime64()
method to complement theTimedelta.to_timedelta64()
method I added in #8884. It is a continuation of the aborted #8916.Arguably, there should also be the alias
Timestamp.values
to complement the series property but I haven't added that yet.