pandas.DataFrame.select

DataFrame.select(crit, axis=0)

Return data corresponding to axis labels matching criteria

Parameters:

crit : function

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

axis : int

Returns:

selection : type of caller