def compress(self, condition, *args, **kwargs):
msg = ("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL>warnings.warn(msg, FutureWarning, stacklevel=<NUM_LIT:2>)<EOL>nv.validate_compress(args, kwargs)<EOL>return self[condition]<EOL>
Return selected slices of an array along given axis as a Series.

.. deprecated:: 0.24.0

See Also
--------
numpy.ndarray.compress