What is Label Encoder
LabelEncoder is a utility class to help normalize labels such that they contain only values between 0 and 1.
Why we need?
In Machine Learning we need to prepare data for X & Y Coordinates . Based on data machine will predict.
Note: Machine will understand only number not any characters/words. So if you have any words in your dataset you need to encode into number to proceed.