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 @@ -81,7 +81,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
8181 -i " pandas.Timestamp.resolution PR02" \
8282 -i " pandas.Timestamp.tzinfo GL08" \
8383 -i " pandas.arrays.ArrowExtensionArray PR07,SA01" \
84- -i " pandas.arrays.IntervalArray.length SA01" \
8584 -i " pandas.arrays.NumpyExtensionArray SA01" \
8685 -i " pandas.arrays.TimedeltaArray PR07,SA01" \
8786 -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:
13061306 """
13071307 Return an Index with entries denoting the length of each Interval.
13081308
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+
13091323 Examples
13101324 --------
13111325
You can’t perform that action at this time.
0 commit comments