def compress(self, condition, axis=0, out=None, **kwargs):
        return self[condition]
Return selected slices of an array along given axis as a Series
dataset/ETHPy150Open pydata/pandas/pandas/core/series.py/Series.compress