How to encode a categorical variable in sklearn?,pd.get_dummies(df['key'])