pandas.RangeIndex.step
- property RangeIndex.step
The value of the step parameter (
1if this was not supplied).Examples
>>> idx = pd.RangeIndex(5) >>> idx
The value of the step parameter (1 if this was not supplied).
>>> idx = pd.RangeIndex(5)
>>> idx
>>> idx = pd.RangeIndex(2, -10, -3)
>>> idx.step
-3
Even if pandas.RangeIndex is empty, step is still 1 if
not supplied.
>>> idx = pd.RangeIndex(1, 0)
>>> idx.step
1