0

enter image description here

My code is

from sklearn.preprocessing import OneHotEncoder
from sklearn.compose import ColumnTransformer

ohe = OneHotEncoder(categorical_features=[0])
ohe.fit_transform(X).toarray()
molbdnilo
  • 64,751
  • 3
  • 43
  • 82
  • which version are you using?? – ΦXocę 웃 Пepeúpa ツ Oct 01 '20 at 17:09
  • https://stackoverflow.com/questions/54345667/onehotencoder-categorical-features-depreciated-how-to-transform-specific-column – Renat Oct 01 '20 at 17:19
  • 2
    Does this answer your question? [OneHotEncoder categorical\_features depreciated, how to transform specific column](https://stackoverflow.com/questions/54345667/onehotencoder-categorical-features-depreciated-how-to-transform-specific-column) – buran Oct 01 '20 at 17:20

0 Answers0