-
-
Notifications
You must be signed in to change notification settings - Fork 157
Add unit property and as_unit method to Timestamp, Timedelta and NaTType
#864
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
Add unit property and as_unit method to Timestamp, Timedelta and NaTType
#864
Conversation
Dr-Irv
left a comment
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.
Suggest using TimeUnit that is now in pandas.
3517aa2 to
9fca549
Compare
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.
Dr-Irv
left a comment
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.
thanks @skatsuta
assert_type()to assert the type of any return valueAdd
unitproperty andas_unitmethod toTimestamp,TimedeltaandNaTType.Adding them to
DatetimeIndex,TimedeltaIndexandSeries.dtwill be done in #865.