File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
78
78
-i " pandas.RangeIndex.from_range PR01,SA01" \
79
79
-i " pandas.RangeIndex.start SA01" \
80
80
-i " pandas.RangeIndex.step SA01" \
81
- -i " pandas.RangeIndex.stop SA01" \
82
81
-i " pandas.Series.cat.add_categories PR01,PR02" \
83
82
-i " pandas.Series.cat.as_ordered PR01" \
84
83
-i " pandas.Series.cat.as_unordered PR01" \
Original file line number Diff line number Diff line change @@ -313,6 +313,20 @@ def stop(self) -> int:
313
313
"""
314
314
The value of the `stop` parameter.
315
315
316
+ This property returns the `stop` value of the RangeIndex, which defines the
317
+ upper (or lower, in case of negative steps) bound of the index range. The
318
+ `stop` value is exclusive, meaning the RangeIndex includes values up to but
319
+ not including this value. This property complements the `start` and `step`
320
+ properties that, together with `stop`, describe the entire range. The
321
+ `RangeIndex` is commonly used in performance-critical scenarios because it
322
+ doesn't store individual values, only the range metadata.
323
+
324
+ See Also
325
+ --------
326
+ RangeIndex : Immutable index representing a range of integers.
327
+ RangeIndex.start : The start value of the RangeIndex.
328
+ RangeIndex.step : The step size between elements in the RangeIndex.
329
+
316
330
Examples
317
331
--------
318
332
>>> idx = pd.RangeIndex(5)
You can’t perform that action at this time.
0 commit comments