pandas.RangeIndex.stop — pandas 3.0.0.dev0+2107.g341f1612a9 documentation (original) (raw)
property RangeIndex.stop[source]#
The value of the stop parameter.
This property returns the stop value of the RangeIndex, which defines the upper (or lower, in case of negative steps) bound of the index range. Thestop value is exclusive, meaning the RangeIndex includes values up to but not including this value.
See also
Immutable index representing a range of integers.
The start value of the RangeIndex.
The step size between elements in the RangeIndex.
Examples
idx = pd.RangeIndex(5) idx.stop 5
idx = pd.RangeIndex(2, -10, -3) idx.stop -10