File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
81
81
-i "pandas.Timestamp.resolution PR02" \
82
82
-i "pandas.Timestamp.tzinfo GL08" \
83
83
-i "pandas.arrays.ArrowExtensionArray PR07,SA01" \
84
- -i "pandas.arrays.IntervalArray.length SA01" \
85
84
-i "pandas.arrays.NumpyExtensionArray SA01" \
86
85
-i "pandas.arrays.TimedeltaArray PR07,SA01" \
87
86
-i "pandas.core.groupby.DataFrameGroupBy.plot PR02" \
Original file line number Diff line number Diff line change @@ -1306,6 +1306,20 @@ def length(self) -> Index:
1306
1306
"""
1307
1307
Return an Index with entries denoting the length of each Interval.
1308
1308
1309
+ The length of an interval is calculated as the difference between
1310
+ its `right` and `left` bounds. This property is particularly useful
1311
+ when working with intervals where the size of the interval is an important
1312
+ attribute, such as in time-series analysis or spatial data analysis.
1313
+
1314
+ See Also
1315
+ --------
1316
+ arrays.IntervalArray.left : Return the left endpoints of each Interval in
1317
+ the IntervalArray as an Index.
1318
+ arrays.IntervalArray.right : Return the right endpoints of each Interval in
1319
+ the IntervalArray as an Index.
1320
+ arrays.IntervalArray.mid : Return the midpoint of each Interval in the
1321
+ IntervalArray as an Index.
1322
+
1309
1323
Examples
1310
1324
--------
1311
1325
You can’t perform that action at this time.
0 commit comments