pandas.Series.compress

Series.compress(condition, axis=0, out=None, **kwargs)

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