pandas invertir una serie booleana
a_series = pd.Series([True, False])
inverted = ~a_series
Important Ibex
a_series = pd.Series([True, False])
inverted = ~a_series