class pandas.TimedeltaIndex
[source]
Immutable ndarray of timedelta64 data, represented internally as int64, and which can be boxed to timedelta objects
Parameters: |
|
---|
See also
Index
Timedelta
DatetimeIndex
PeriodIndex
timedelta_range
To learn more about the frequency strings, please see this link.
Creating a TimedeltaIndex based on start
, periods
, and end
has been deprecated in favor of timedelta_range()
.
days | Number of days for each element. |
seconds | Number of seconds (>= 0 and less than 1 day) for each element. |
microseconds | Number of microseconds (>= 0 and less than 1 second) for each element. |
nanoseconds | Number of nanoseconds (>= 0 and less than 1 microsecond) for each element. |
components | Return a dataframe of the components (days, hours, minutes, seconds, milliseconds, microseconds, nanoseconds) of the Timedeltas. |
inferred_freq | Tryies to return a string representing a frequency guess, generated by infer_freq. |
to_pytimedelta (self, \*args, \*\*kwargs) | Return Timedelta Array/Index as object ndarray of datetime.timedelta objects. |
to_series (self[, index, name]) | Create a Series with both index and values equal to the index keys useful with map for returning an indexer based on an index. |
round (self, freq[, ambiguous, nonexistent]) | Perform round operation on the data to the specified freq . |
floor (self, freq[, ambiguous, nonexistent]) | Perform floor operation on the data to the specified freq . |
ceil (self, freq[, ambiguous, nonexistent]) | Perform ceil operation on the data to the specified freq . |
to_frame (self[, index, name]) | Create a DataFrame with a column containing the Index. |
mean (self, \*args, \*\*kwargs) | Return the mean value of the Array. |
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.TimedeltaIndex.html