Temporal#
The following methods are available under the Series.dt
attribute.
|
Offset by |
Base offset from UTC. |
|
|
Cast the underlying data to another time unit. |
Extract the century from underlying representation. |
|
|
Create a naive Datetime from an existing Date/Datetime expression and a Time. |
|
Convert to given time zone for a Series of type Datetime. |
Extract (local) date. |
|
Extract (local) datetime. |
|
Extract the day from the underlying date representation. |
|
Additional offset currently in effect (typically due to daylight saving time). |
|
|
Get the time passed since the Unix EPOCH in the give time unit. |
Extract the hour from the underlying DateTime representation. |
|
Determine whether the year of the underlying date representation is a leap year. |
|
Extract ISO year from underlying Date representation. |
|
Return maximum as Python datetime. |
|
Return mean as python DateTime. |
|
Return median as python DateTime. |
|
Extract the microseconds from the underlying DateTime representation. |
|
Extract the millennium from underlying representation. |
|
Extract the milliseconds from the underlying DateTime representation. |
|
Return minimum as Python datetime. |
|
Extract the minutes from the underlying DateTime representation. |
|
Extract the month from the underlying date representation. |
|
Roll forward to the last day of the month. |
|
Roll backward to the first day of the month. |
|
Extract the nanoseconds from the underlying DateTime representation. |
|
Offset this date by a relative time offset. |
|
Extract ordinal day from underlying date representation. |
|
Extract quarter from underlying Date representation. |
|
|
Replace time unit. |
|
Replace time zone for a Series of type Datetime. |
|
Divide the date/ datetime range into buckets. |
|
Extract seconds from underlying DateTime representation. |
|
Convert a Date/Time/Datetime column into a String column with the given format. |
Extract (local) time. |
|
|
Return a timestamp in the given time unit. |
|
Convert a Date/Time/Datetime column into a String column with the given format. |
Extract the total days from a Duration type. |
|
Extract the total hours from a Duration type. |
|
Extract the total microseconds from a Duration type. |
|
Extract the total milliseconds from a Duration type. |
|
Extract the total minutes from a Duration type. |
|
Extract the total nanoseconds from a Duration type. |
|
Extract the total seconds from a Duration type. |
|
|
Divide the date/ datetime range into buckets. |
Extract the week from the underlying date representation. |
|
Extract the week day from the underlying date representation. |
|
|
Set time unit a Series of dtype Datetime or Duration. |
Extract the year from the underlying date representation. |