Temporal#
The following methods are available under the expr.dt attribute.
Cast the underlying data to another time unit. |
|
|
Replace time zone for a Series of type Datetime. |
|
Create a naive Datetime from an existing Date/Datetime expression and a Time. |
Extract day from underlying Date representation. |
|
Extract the days from a Duration type. |
|
|
Get the time passed since the Unix EPOCH in the give time unit. |
Extract hour from underlying DateTime representation. |
|
Extract the hours from a Duration type. |
|
Determine whether the year of the underlying date is a leap year. |
|
Extract ISO year from underlying Date representation. |
|
Extract microseconds from underlying DateTime representation. |
|
Extract the microseconds from a Duration type. |
|
Extract milliseconds from underlying DateTime representation. |
|
Extract the milliseconds from a Duration type. |
|
Extract minutes from underlying DateTime representation. |
|
Extract the minutes from a Duration type. |
|
Extract month from underlying Date representation. |
|
Extract nanoseconds from underlying DateTime representation. |
|
Extract the nanoseconds from a Duration type. |
|
Offset this date by a relative time offset. |
|
Extract ordinal day from underlying Date representation. |
|
Extract quarter from underlying Date representation. |
|
|
Divide the date/datetime range into buckets. |
|
Extract seconds from underlying DateTime representation. |
Extract the seconds from a Duration type. |
|
|
Format Date/Datetime with a formatting rule. |
|
Return a timestamp in the given time unit. |
|
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 of a Series of dtype Datetime or Duration. |
|
|
Convert to given time zone for a Series of type Datetime. |
Extract year from underlying Date representation. |