modin.pandas.TimedeltaIndex¶
- class modin.pandas.TimedeltaIndex(data: ArrayLike | native_pd.Index | Series | None = None, unit: str | lib.NoDefault = _NoDefault.no_default, freq: Frequency | lib.NoDefault = _NoDefault.no_default, dtype: Dtype | None = None, copy: bool = False, name: Hashable | None = None, query_compiler: SnowflakeQueryCompiler = None)[source]¶
- Bases: - Index- Methods - as_unit(unit)- Convert to a dtype with the given unit resolution. - ceil(freq)- Perform ceil operation on the data to the specified freq. - floor(freq)- Perform floor operation on the data to the specified freq. - mean(*[, skipna, axis])- Return the mean value of the Timedelta values. - round(freq)- Perform round operation on the data to the specified freq. - Return an ndarray of datetime.timedelta objects. - total_seconds()- Return total duration of each element expressed in seconds. - Attributes - Return a - DataFrameof the individual resolution components of the Timedeltas.- Number of days for each element. - Tries to return a string representing a frequency generated by infer_freq. - Number of microseconds (>= 0 and less than 1 second) for each element. - Number of nonoseconds (>= 0 and less than 1 microsecond) for each element. - Number of seconds (>= 0 and less than 1 day) for each element.