Machine Learning python missForest imputation for mixed categorical and continuous features example mahler83, 2019-09-092019-09-09 R에서 연속형 변수와 범주형 변수가 섞여있어도 missForest imputation이 한 줄로 되는데, python에서는 은근 까다롭다. 일단 필요한 라이브러리 로드. missingpy 패키지를 이용 성별과 유전형이 category이다. 범주형인 컬럼의 번호를 리스트 형태로 전달해줘야 한다. R에서는 웬만하건 다 이름 index로도 되는데 왜 꼭 번호를… 내가 잘못한건지 모르겠는데, imputation이 끝나고 나면 dtype이 다 float64로 변환된다….