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] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/extensions/timedelta_index.py#L53-L491)

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.

to_pytimedelta()

Return an ndarray of datetime.timedelta objects.

total_seconds()

Return total duration of each element expressed in seconds.

Attributes

components

Return a DataFrame of the individual resolution components of the Timedeltas.

days

Number of days for each element.

inferred_freq

Tries to return a string representing a frequency generated by infer_freq.

microseconds

Number of microseconds (>= 0 and less than 1 second) for each element.

nanoseconds

Number of nonoseconds (>= 0 and less than 1 microsecond) for each element.

seconds

Number of seconds (>= 0 and less than 1 day) for each element.

Language: English