RangeIndex

class Sloth.index.RangeIndex

Index that is roughly equivalent to numpy.arange().

Parameters

startint

Beginning position.

stopint

End position.

stepint

How much to increase the range every step. Must be positive.

Examples

>>> idx = RangeIndex(0, 10, 2)
>>> idx.keys_
array([0, 2, 4, 6, 8])
>>> idx.size
10

Methods