How to handle categorical values in the data?

categorical values in the data

On this page

How to handle

It depends on the type of categorical variables. If the categorical variables are hierarchical then they could be represented using a single column with numeric values corresponding to the hierarchy. If they aren’t hierarchical then we will use one hot encoding and create n-1 columns [n being the number of distinct values the categorical variable has].