Given this
import pandas as pd
data = pd.Series([True, True, False, False],
index=['2019-01-01','2019-01-02','2019-01-03','2019-01-04'])
data[data] # why this works?
data[-data]
Is there any other way besides the above.
Given this
import pandas as pd
data = pd.Series([True, True, False, False],
index=['2019-01-01','2019-01-02','2019-01-03','2019-01-04'])
data[data] # why this works?
data[-data]
Is there any other way besides the above.