As data pre-processing, we frequently need to deal with missing values. There are some ways to deal with those and one of them is to complement those by representative values.
On Python, by scikit-learn, we can do it.
I'll use air quality data to try it.
To prepare the data, on R console, execute the following code on your working directory.