df_ordinal_label=df_cate_ordinal.apply(preprocessing.LabelEncoder().fit_transform)#used sklearn lib df_ordinal_label.head(5)