I have 3 dataframes of the sizes 1x100 , 20x100 and 20x100.
a1 b1 b2 .... b20 c1 c2 .... c20
0 1 0 .... 0 1 0 .... 0
1 0 1 .... 1 0 0 .... 0
0 0 0 .... 0 1 1 .... 1
1 0 0 .... 0 0 0 .... 1
0 1 1 .... 1 1 0 .... 0
1 0 0 .... 1 1 0 .... 0
I want to run a logical operation as ((a1==0) & (b1==1) & (c1==1)).astype(int) then ((a1==0) & (b2==1) & (c2==1)).astype(int) and so on until ((a1==0) & (b20==1) & (c20==1)).astype(int) and store in a new dataframe.
The final output dataframe should consist of 20 columns.