Skip to content

Commit 12ecefb

Browse files
committed
BUG: Fix linting errors in MultiIndex GH#55969
1 parent cc3fa4b commit 12ecefb

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

pandas/core/indexes/multi.py

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3265,30 +3265,25 @@ def _get_loc_single_level_index(self, level_index: Index, key: Hashable) -> int:
32653265

32663266
def get_loc(self, key, method=None):
32673267
"""
3268-
Get location for a label or a tuple of labels.
3269-
The location is returned
3268+
Get location for a label or a tuple of labels. The location is returned
32703269
as an integer/slice or boolean mask.
32713270
3272-
This method returns the integer location, slice
3273-
object, or boolean mask
3274-
corresponding to the specified key, which can be
3275-
a single label or a tuple
3276-
of labels. The key represents a position in the
3277-
MultiIndex, and the location
3271+
This method returns the integer location, slice object, or boolean mask
3272+
corresponding to the specified key, which can be a single label or a tuple
3273+
of labels. The key represents a position in the MultiIndex, and the location
32783274
indicates where the key is found within the index.
32793275
32803276
Parameters
32813277
----------
32823278
key : label or tuple of labels (one for each level)
3283-
A label or tuple of labels that correspond to the
3284-
levels of the MultiIndex.
3279+
A label or tuple of labels that correspond to the levels of the MultiIndex.
32853280
The key must match the structure of the MultiIndex.
32863281
32873282
Returns
32883283
-------
32893284
int, slice object or boolean mask
3290-
If the key is past the lexsort depth, the return may be a
3291-
boolean mask array, otherwise it is always a slice or int.
3285+
If the key is past the lexsort depth, the return may be a
3286+
boolean mask array, otherwise it is always a slice or int.
32923287
32933288
See Also
32943289
--------

0 commit comments

Comments
 (0)