In previous blog I post the how to impute the categorical variable. In this blog we will learn how we can impute numeric variable using python in machine learning and data science related projects.
Here simple python script that easily impute your numeric variable.
The python file data_imputation_numerical.py imputes one numerical variable.
You can modify at three places in this file to fit your use.
Original file
Variable index for the categorical variable. (Variable index=1 is the second column, since python counts starting 0)
Result file
Before Imputation
After Imputation
You can contact us or share your requirement details at:
Here you get all data analysis and data cleaning related help with an affordable price. We are group of 20+ highly qualified and experienced experts.
留言