>>> pd.get_dummies(df["condition"])       # one column per category (0/1)
   control  treatment
0        1          0
1        0          1

>>> df["condition_code"] = df["condition"].map({"control": 0, "treatment": 1})
