Panel.
loc
¶
Purely label-location based indexer for selection by label.
.loc[]
is primarily label based, but may also be used with a boolean array.
Allowed inputs are:
5
or 'a'
, (note that 5
is interpreted as a label of the index, and never as an integer position along the index).['a', 'b', 'c']
.'a':'f'
(note that contrary to usual python slices, both the start and the stop are included!).callable
function with one argument (the calling Series, DataFrame or Panel) and that returns valid output for indexing (one of the above).loc
will raise a KeyError
when the items are not found.
See more at Selection by Label
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