One Hot Encoding One hot encoding, consists in encoding each categorical variable with different boolean variables (also called dummy variables) which take values 0 or 1, indicating if a category is present in an observation. For example, for the categorical variable “Gender”, with labels ‘female’ and ‘male’, we can generate…