update
This commit is contained in:
parent
3727425a0b
commit
0a84a4b4dc
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ my_df3 = pd.DataFrame(KNN(n_neighbors= 5, weights="uniform").fit_transform(df[or
|
||||||
my_df3.columns = or_cols
|
my_df3.columns = or_cols
|
||||||
|
|
||||||
imputer = KNNImputer(n_neighbors=2, weights="uniform")
|
imputer = KNNImputer(n_neighbors=2, weights="uniform")
|
||||||
my_df4 = imputer.fit_transform(my_df2)
|
my_df4 = pd.DataFrame(imputer.fit_transform(df[or_cols]), columns = or_cols)
|
||||||
|
|
||||||
#all(my_df3==my_df4)
|
#all(my_df3==my_df4)
|
||||||
my_df3['log10_or_mychisq'].value_counts().plot(kind = 'hist')
|
my_df3['log10_or_mychisq'].value_counts().plot(kind = 'hist')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue