The categorical feature is initially transformed to numerical using an ordinal encoder in this encoding approach. The numbers are then converted to binary numbers. Following that, the binary value is divided into columns. When there are a large number of categories, binary encoding works extremely well.
When missing values come from categorical columns, such as string or numerical, they might be replaced with the most common category. If there are a large number of missing values, the category can be replaced with a new one.
There are many ways to encode categorical data. Some of the most common ways include:
Binary encoding: encoding the categorical variable as a binary variable with two levels, 0 and 1.
Ordinal coding: coding the categorical variable as an ordinal variable that has no order or magnitude.
Nominal coding: encoding the categorical variable as a nominal variable that has no order or magnitude.
where is the finaldata.csv
great learning plateform kushal sir is really too good