Checking for Missing Values
I'm happy to see you in the last section of the course. Here, you will process data on the passengers of the Titanic. First, let's examine it:
The first step of our learning is finding missing values. By the way, sometimes it is difficult or even impossible to fill all the values of the column; some of them may be missing. Such cases can spoil your result. In the dataset, they always look like this: NaN
. First, let's find out if your data set contains missing values.
Pandas has two functions you can apply to the dataset to find missing values. Both of them will put False
if the dataset values aren't missing, and True
otherwise.
data.isna()
# Or
data.isnull()
¡Gracias por tus comentarios!
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Awesome!
Completion rate improved to 3.03
Checking for Missing Values
Desliza para mostrar el menú
I'm happy to see you in the last section of the course. Here, you will process data on the passengers of the Titanic. First, let's examine it:
The first step of our learning is finding missing values. By the way, sometimes it is difficult or even impossible to fill all the values of the column; some of them may be missing. Such cases can spoil your result. In the dataset, they always look like this: NaN
. First, let's find out if your data set contains missing values.
Pandas has two functions you can apply to the dataset to find missing values. Both of them will put False
if the dataset values aren't missing, and True
otherwise.
data.isna()
# Or
data.isnull()
¡Gracias por tus comentarios!