pandas.Series.compress — pandas 0.25.3 documentation (original) (raw)

Series. compress(self, condition, *args, **kwargs)[source]

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

Deprecated since version 0.24.0.

Returns: Series Series without the slices for which condition is false.

See also

numpy.ndarray.compress