pandas.Series.select

Series.select(self, crit, axis=0)[source]

Return data corresponding to axis labels matching criteria.

Deprecated since version 0.21.0: Use df.loc[df.index.map(crit)] to select via labels

Parameters
critfunction

To be called on each index (label). Should return True or False

axisint
Returns
selectionsame type as caller
Scroll To Top