-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Add unit
property and as_unit
method to Timestamp
, Timedelta
and NaTType
#864
Conversation
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.
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
unit
property andas_unit
method toTimestamp
,Timedelta
andNaTType
.Adding them to
DatetimeIndex
,TimedeltaIndex
andSeries.dt
will be done in #865.