panda membalikkan seri boolean

a_series = pd.Series([True, False])

inverted = ~a_series
Important Ibex