Reputation: 3379
I took a look at this question here: Missing value imputation in python using KNN
I don't believe I can use fancyimpute or download the sklearn knn impute code from github (I'm doing this on a python platform where I can't just download additional code).
Would there be a way to use sklearn's kNN to do this manually? If I have data missing for some columns I don't think sklearn's kNN will run right?
Upvotes: 0
Views: 3691
Reputation: 926
Answering your last question:
Missing data will mean that the distance between samples can not be calculated. These samples could be excluded. So if you have missing data, sklearn's knn will not run right.
Upvotes: -3