Transform categorical features