I have an ordinal variable called Product.Package.Level and would like to ordinal encode it and order them based on the sum of the number or average number of the variable Leads. How exactly do I go about doing this?
This can be easily be done in python with the feature engine package.