Sea of Tranquility    About    Archive    Feed

Dealing with missing values

What to do if some values are missing?

There are three options:

  1. Remove the rows with missing values

  2. Remove the columns with missing values

  3. Replace the missing values with the median of values of the corresponding column



Replacing the missing values using SimpleImputer class

You can do the replacements by using the SimpleImputer class too.