pandas.Series.__invert__

pandas 3.1.1 · Series and accessors · method

Implement ~ for the receiver. For a boolean mask, flip true and false.

Call syntax

Series.__invert__()

Run the example

Edit the example and select Run Python to see the result.

Parameters

This call takes no arguments.

Returns

Series or DataFrame