A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/pandas-docs/stable/reference/api/../api/pandas.Index.slice_locs.html below:

pandas.Index.slice_locs — pandas 2.3.1 documentation

pandas.Index.slice_locs#
Index.slice_locs(start=None, end=None, step=None)[source]#

Compute slice locations for input labels.

Parameters:
startlabel, default None

If None, defaults to the beginning.

endlabel, default None

If None, defaults to the end.

stepint, defaults None

If None, defaults to 1.

Returns:
tuple[int, int]

See also

Index.get_loc

Get location for a single label.

Notes

This method only works if the index is monotonic or unique.

Examples

>>> idx = pd.Index(list('abcd'))
>>> idx.slice_locs(start='b', end='c')
(1, 3)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4