Home Forums Job & Work Life LabelEncoder 관련되서 하나만 알려주세요 This topic has [1] reply, 0 voices, and was last updated 4 years ago by O. Now Editing “LabelEncoder 관련되서 하나만 알려주세요” Name * Password * Email Topic Title (Maximum Length 80) from sklearn.preprocessing import LabelEncoder le = LabelEncoder() tmp = pd.Series(['a', 'b', np.nan]) print(le.fit_transform(tmp)) 제가 이걸 kaggle notebook이나 colab에서 돌리면 Encoders require their input to be uniformly strings or numbers. Got ['float', 'str']라고 뜨는데요 제가 듣는 해설영상에서는 돌려도 그대로 결괏값이 [0,1,2]로 뜨는데 제꺼랑 해설이랑 어디서 차이가 나서 결과가 다른건지를 도무지 모르겠습니다 알려주세요 선배님들 I agree to the terms of service Update List