I'm trying to one-hot encode one column of a dataframe.
enc = OneHotEncoder()
minitable = enc.fit_transform(df["ids"])
But I'm getting
DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17 and willraise ValueError in 0.19.
Is there a workaround for this?