ISO 8601 format
For duration:
P
(duration, always at the beginning of the duration),Y
(year),M
(month),W
(week),D
(day),T
(time designator, always precedes the time components),H
(hour),M
(minute),S
(second).
- Example:
P3Y6M4DT12H30M5S
-- a duration of three years, six months, four days, twelve hours, thirty minutes, and five seconds.
Converter,
To
Timedelta
From
Timedelta
Â
TimedeltaIndex
differencesTimestamps
Get info timestamps
Check timestamps are well sorted?
Detect time series frequency
Find the different time steps in a datetime columns,
One can couple with function
timedelta_to_string
in the previous section to find out the most-appeared time steps to feed into df.resample()
's rule
.