polars.get_dummies

polars.get_dummies(df: polars.internals.frame.DataFrame) polars.internals.frame.DataFrame

Convert categorical variables into dummy/indicator variables.

Parameters
df

DataFrame to convert.