I have a dataset with categorical data that are of different weights, take for an instance Phd has a higher weight than Masters and like MSc is higher than Bsc.
I know am to use Label encoder but i dont want python to assigned codes to these variables arbitrarily. I want higher codes for Phd = 4, Msc = 3 , Bsc = 2, O Levels = 1 and No education = 0.
Is there anyway i can go about this? Can anyone be of help?