📜  OneHotEncoder() - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:44.352000             🧑  作者: Mango

代码示例1
enc = OneHotEncoder()
enc.fit(df[["Temperature"]])
onehotlabels = enc.transform(df[["Temperature"]]).toarray()