Categorical Variables are the one which is string variable or nominal variable where variables order doesn't matter:
For example, here the column name is nominal, thus can be set as a categorical variable.
| Name | Age |
| "Manushi" | 1 |
| "Firman" | 2 |
| "Valentijin" | 3 |
| "Akhil" | 4 |
There are variables like Ordinal Variables which implies the order into the categorical variable.
For example, here the Temperature is an ordinal variable implying the order in the variable.
| Name | Age | Temprature |
| "Manushi" | 1 | "High" |
| "Firman" | 2 | "Moderate" |
| "Valentijin" | 3 | "Low" |
| "Akhil" | 4 | "Low" |