TimedeltaIndex.slice_locs()

TimedeltaIndex.slice_locs(start=None, end=None, step=None, kind=None) [source] Compute slice locations for input labels. Parameters: start : label, default None If None, defaults to the beginning end : label, default None If None, defaults to the end step : int, defaults None If None, defaults to 1 kind : {?ix?, ?loc?, ?getitem?} or None Returns: start, end : int

TimedeltaIndex.slice_indexer()

TimedeltaIndex.slice_indexer(start=None, end=None, step=None, kind=None) [source] For an ordered Index, compute the slice indexer for input labels and step Parameters: start : label, default None If None, defaults to the beginning end : label, default None If None, defaults to the end step : int, default None kind : string, default None Returns: indexer : ndarray or slice Notes This function assumes that the data is sorted, so use at your own peril

TimedeltaIndex.size

TimedeltaIndex.size return the number of elements in the underlying data

TimedeltaIndex.shift()

TimedeltaIndex.shift(n, freq=None) [source] Specialized shift which produces a DatetimeIndex Parameters: n : int Periods to shift by freq : DateOffset or timedelta-like, optional Returns: shifted : DatetimeIndex

TimedeltaIndex.shape

TimedeltaIndex.shape return a tuple of the shape of the underlying data

TimedeltaIndex.set_value()

TimedeltaIndex.set_value(arr, key, value) [source] Fast lookup of value from 1-dimensional ndarray. Only use this if you know what you?re doing

TimedeltaIndex.set_names()

TimedeltaIndex.set_names(names, level=None, inplace=False) [source] Set new names on index. Defaults to returning new index. Parameters: names : str or sequence name(s) to set level : int, level name, or sequence of int/level names (default None) If the index is a MultiIndex (hierarchical), level(s) to set (None for all levels). Otherwise level must be None inplace : bool if True, mutates in place Returns: new index (of same type and class...etc) [if inplace, returns None] Example

TimedeltaIndex.seconds

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

TimedeltaIndex.searchsorted()

TimedeltaIndex.searchsorted(key, side='left', sorter=None) [source] Find indices where elements should be inserted to maintain order. Find the indices into a sorted TimedeltaIndex self such that, if the corresponding elements in v were inserted before the indices, the order of self would be preserved. Parameters: key : array_like Values to insert into self. side : {?left?, ?right?}, optional If ?left?, the index of the first suitable location found is given. If ?right?, return the last

TimedeltaIndex.round()

TimedeltaIndex.round(freq, *args, **kwargs) [source] round the index to the specified freq Parameters: freq : freq string/object Returns: index of same type Raises: ValueError if the freq cannot be converted