bach.SeriesTimedelta.dt

property dt

: bach.series.series_datetime.TimedeltaOperation

Get access to date operations.

class TimedeltaOperation

(series)

property components

: bach.dataframe.DataFrame

Returns

a DataFrame containing all date parts from the timedelta.

property days

: bach.series.series_numeric.SeriesInt64

converts total seconds into days and returns only the integral part of the result

property microseconds

: bach.series.series_numeric.SeriesInt64

considers only the fractional part of the total seconds and converts it into microseconds

property seconds

: bach.series.series_numeric.SeriesInt64

removes days from total seconds (self.total_seconds % _SECONDS_IN_DAY) and returns only the integral part of the result

property total_seconds

: bach.series.series_numeric.SeriesFloat64

returns the total amount of seconds in the interval

note

Since Athena does not support interval types, series values are actually the total seconds.