Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

OneHotEncoder()

enc = OneHotEncoder()
enc.fit(df[["Temperature"]])
onehotlabels = enc.transform(df[["Temperature"]]).toarray()
Source by scikit-learn.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
2+2 =