Why do we Encode?
Types of Encoding
Ordinal Encoding
Documentation: https://contrib.scikit-learn.org/category_encoders/ordinal.html |
One-Hot Encoding
Documentation: https://contrib.scikit-learn.org/category_encoders/onehot.html OutputLabel Encoding
Documentation: https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.LabelEncoder.html |
Output |
Cheatography
https://cheatography.com
Encoding Categorical Variables in Python Cheat Sheet (DRAFT) by [deleted]
This cheatsheet will give you a sneak peek and basic understanding of why and how to encode categorical variables by using scikit learn library. It will show you 3 types of encoding One-Hot Encoding, Ordinal Encoding and Label Encoding.
This is a draft cheat sheet. It is a work in progress and is not finished yet.