Table Of Contents


Enter search terms or a module, class or function name.


DatetimeIndex.slice_indexer(start=None, end=None, step=None, kind=None)[source]

Return indexer for specified label slice. Index.slice_indexer, customized to handle time slicing.

In addition to functionality provided by Index.slice_indexer, does the following:

  • if both start and end are instances of datetime.time, it invokes indexer_between_time
  • if start and end are both either string or None perform value-based selection in non-monotonic cases.
Scroll To Top