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 @@ -77,7 +77,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
77
77
-i " pandas.DataFrame.plot PR02,SA01" \
78
78
-i " pandas.Grouper PR02" \
79
79
-i " pandas.Index PR07" \
80
- -i " pandas.IntervalIndex.get_loc PR07,RT03,SA01" \
81
80
-i " pandas.IntervalIndex.is_non_overlapping_monotonic SA01" \
82
81
-i " pandas.IntervalIndex.left GL08" \
83
82
-i " pandas.IntervalIndex.length GL08" \
Original file line number Diff line number Diff line change @@ -621,13 +621,27 @@ def get_loc(self, key) -> int | slice | np.ndarray:
621
621
"""
622
622
Get integer location, slice or boolean mask for requested label.
623
623
624
+ The `get_loc` method is used to retrieve the integer index, a slice for
625
+ slicing objects, or a boolean mask indicating the presence of the label
626
+ in the `IntervalIndex`.
627
+
624
628
Parameters
625
629
----------
626
630
key : label
631
+ The value or range to find in the IntervalIndex.
627
632
628
633
Returns
629
634
-------
630
635
int if unique index, slice if monotonic index, else mask
636
+ The position or positions found. This could be a single
637
+ number, a range, or an array of true/false values
638
+ indicating the position(s) of the label.
639
+
640
+ See Also
641
+ --------
642
+ IntervalIndex.get_indexer_non_unique : Compute indexer and
643
+ mask for new index given the current index.
644
+ Index.get_loc : Similar method in the base Index class.
631
645
632
646
Examples
633
647
--------
You can’t perform that action at this time.
0 commit comments