Transform and replace the numeric columns

Can anyone tell me how to transform and replace numeric columns of the inputs_df

@byeswanthsai , use imputer function. You can refer akansh notebook the one he used in demo
demo akansh notebook link - Lesson 2 - Logistic Regression for Classification | Jovian

for transformation of imputer u can use
imputer.transform(inputs_df[numeric_cols])

thank you for that . Actually I have fit imputer using prices_df instead of inputs_df . That why it didn’t worked for me initially when I tried to transform

1 Like

the price df contains the categorical columns as well. Imputer doesn’t work on categorical columns

1 Like