python sklearn labelencoder、OneHotEncoder和get_dummies的区别
文章目录labelencoderOneHotEncoderget_dummiesLabelBinarizerlabelencoderLabelEncoder将不连续的数字or文本进行编号importnumpyasnpimportpandasaspddata=pd.DataFrame({"学号":[1001,1002,1003,1004],"性别":["男","女","女","男"],"学历":["