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()
Takk for tilbakemeldingene dine!
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 3.03
Checking for Missing Values
Sveip for å vise menyen
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()
Takk for tilbakemeldingene dine!