pandas.DataFrame.__invert__
pandas 3.1.1 · DataFrame · method
Implement ~ for the receiver. For a boolean mask, flip true and false.
Call syntax
DataFrame.__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