pandas.Series.compress

Series.compress(condition, *args, **kwargs)

Return selected slices of an array along given axis as a Series