I want to replace columns in dataframe after the first column based on the first column. Suppose we have:
df = {\'Z\': [\'1\', \'0\', \'1\', \'1\', \'0\'],