I\'m trying to set multiple new columns to one column and, separately, multiple new columns to multiple scalar values. Can\'t do either. Any way to do it other than setting
for c in ['C', 'D']: df[c] = d['A'] df['C'] = 0 df['D'] = 1