Replacing the Missing Values
Learn how to replace the missing values in a Pandas DataFrame.
We'll cover the following...
The fillna
function
In the previous lesson, we saw how to drop rows and columns that contain missing values. Dropping may not be the best option in many cases, though. Another option for handling missing values is to replace them with an actual value with the fillna
function.
The value to be used as a replacement for missing values depend on the characteristics of the data. We may choose ...
Access this course and 1400+ top-rated courses and projects.