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()
Bedankt voor je feedback!
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Awesome!
Completion rate improved to 3.03
Checking for Missing Values
Veeg om het menu te tonen
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()
Bedankt voor je feedback!