pandas 1.4.2

AttributesMethodsNotesParametersBackRef

Attributes

days :
seconds :
microseconds :
nanoseconds :
components :
inferred_freq :

Methods

Notes

To learn more about the frequency strings, please see :None:None:`this link <https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`.

Parameters

data : array-like (1-dimensional), optional

Optional timedelta-like data to construct index with.

unit : unit of the arg (D,h,m,s,ms,us,ns) denote the unit, optional

Which is an integer/float number.

freq : str or pandas offset object, optional

One of pandas date offset strings or corresponding objects. The string 'infer' can be passed in order to set the frequency of the index as the inferred frequency upon creation.

copy : bool

Make a copy of input ndarray.

name : object

Name to be stored in the index.

Immutable ndarray of timedelta64 data, represented internally as int64, and which can be boxed to timedelta objects.

See Also

DatetimeIndex

Index of datetime64 data.

Index

The base pandas Index type.

PeriodIndex

Index of Period data.

Timedelta

Represents a duration between two dates or times.

timedelta_range

Create a fixed-frequency TimedeltaIndex.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

pandas.core.indexes.period.PeriodIndex pandas.core.frame.DataFrame.resample pandas.core.indexes.datetimes.DatetimeIndex pandas.core.series.Series.resample pandas.core.indexes.base.Index pandas.core.generic.NDFrame.resample

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /pandas/core/indexes/timedeltas.py#31
type: <class 'type'>
Commit: