pandas.DataFrame.loc — pandas 0.16.2 documentation (original) (raw)

DataFrame.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:

.loc will raise a KeyError when the items are not found.

See more at Selection by Label