danfo.OneHotEncoder
Encode categorical features as a one-hot numeric array.
Last updated
Was this helpful?
Encode categorical features as a one-hot numeric array.
Last updated
Was this helpful?
class danfo.OneHotEncoder
danfo.js provides the OneHotEncoder class for encoding values in Series and Arrays to one-hot numeric arrays. This is mostly used as a preprocessing step before most machine learning tasks.
The API is similar to scikit-learn's , and provides a fit and transform method.
See also and