How to process from below origin data into below result.
▼ origin data
df = pd.DataFrame([[1,1,1,0],[2,1,0,1]],columns=[\'id\',\'a\',\'b\',\'c\']) df <