Data Transformation, Sklearn, Machine Learning, One Hot Encoding, Label Encoding.
encoder = OneHotEncoder(sparse=False) print(encoder.fit_transform([['red'], ['green'], ['blue']])) ''' [[0. 0. 1.] [0. 1. 0.] [1. 0. 0.]] Label Encoding The label encoder will convert each category into a unique numerical value. If implemented with Sklearn, then this encoder should be used to