@@ -1952,19 +1952,19 @@ def slice_locs(self, start=None, end=None, step=None, kind=None):
1952
1952
1953
1953
Examples
1954
1954
--------
1955
- mi = pd.MultiIndex.from_arrays([list('abbd'), list('deff')],
1956
- names=['A', 'B'])
1955
+ >>> mi = pd.MultiIndex.from_arrays([list('abbd'), list('deff')],
1956
+ ... names=['A', 'B'])
1957
1957
1958
1958
Get the slice locations from the beginning of 'b' in the first level
1959
1959
until the end of the multiindex:
1960
1960
1961
- mi.slice_locs(start='b')
1961
+ >>> mi.slice_locs(start='b')
1962
1962
(1, 4)
1963
1963
1964
1964
Like above, but stop at the end of 'b' in the first level and 'f' in
1965
1965
the second level:
1966
1966
1967
- mi.slice_locs(start='b', end=('b', 'f'))
1967
+ >>> mi.slice_locs(start='b', end=('b', 'f'))
1968
1968
(1, 3)
1969
1969
1970
1970
See Also
@@ -2042,8 +2042,8 @@ def get_loc(self, key, method=None):
2042
2042
See also
2043
2043
--------
2044
2044
Index.get_loc : get_loc method for (single-level) index.
2045
- MultiIndex.slice_locs : Get slice location given startlabel (s) and
2046
- endlabel (s).
2045
+ MultiIndex.slice_locs : Get slice location given start label (s) and
2046
+ end label (s).
2047
2047
MultiIndex.get_locs : Get location for a label/slice/list/mask or a
2048
2048
sequence of such.
2049
2049
"""
@@ -2397,8 +2397,8 @@ def get_locs(self, seq):
2397
2397
See also
2398
2398
--------
2399
2399
MultiIndex.get_loc : Get location for a label or a tuple of labels.
2400
- MultiIndex.slice_locs : Get slice location given startlabel (s) and
2401
- endlabel (s).
2400
+ MultiIndex.slice_locs : Get slice location given start label (s) and
2401
+ end label (s).
2402
2402
"""
2403
2403
2404
2404
# must be lexsorted to at least as many levels
0 commit comments