0
I have several lists and a single dataframe, my goal is to filter my columns that contain the same values from my list and create a dynamic XOR operation. When you find my XOR result equal to 0, the row of this 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'])
Operation XOR.
Result after deleting lines where XOR operation equals 0.