Python包提供了几种方法来估算python中缺少的值。这些文件提供了一些例子,例如:# X_incomplete has the same values as X except a subset have been replace with NaN
# use that estimate for imputation.
X_filled_ii = IterativeIm
我偶然发现了一个看起来很不错的包,叫做fancyimpute (你可以在here上找到它)。但是我对它有一些问题。下面是我要做的: #the neccesary importsimport numpy as npdf_numeric = = df.select_dtypes(include=[np.float])
# I now run fancyimpute KNN,更新 我意识到,fan