About Lesson
- Create a data frame with a column that has missing values in the beginning. Try to use the ffill() method to handle these missing values. Explain why the ffill() method fails to fill the missing values which are at the beginning of the column?
- Create a data frame with a column that has missing values at the end. Try to use the bfill() method to handle these missing values. Explain why the bfill() method fails to fill the missing values which are at the end of the column.
- In our previous lesson, we discussed the encoding methods and we used the replace() method to convert non-numeric values to numeric ones. Use the same replace() method to replace the missing values with zeroes.