I have multiple lists and a single dataframe, my goal is to filter my columns containing the same values from my list and create a XOR operation dynamically. When I find my XOR result equal to 0, the line of my result should be deleted.
l1 = ['macao', 'banana']
l2 = ['uva','pera']
df = pd.DataFrame(np.random.randint(low=0, high=2, size=(5, 5)),
columns=['uva', 'pera', 'maca', 'banana', 'melao'])
XORoperation.
ResultafterdeletingtherowswheretheXORoperationisequalto0.