human
How to binarize the values in a pandas DataFrame?
assistant
Here is some code to binarize the values in columns of list `order` in a pandas data frame

pd.concat([df, pd.get_dummies(df, '', '').astype(int)], axis=1)[order]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.