Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Calculating the Number of Missing Values | Preprocessing Data
Advanced Techniques in pandas

bookCalculating the Number of Missing Values

It should be noted that it isn't convenient to check each value of the dataset for the NaN. It is more convenient to see the number of missing values to conclude columns where we have NaNs. As you remember, we have two functions to check for the missing values. To calculate the sum, just use the .sum() function. Thus, in general, we have 2 options for outputting the number of NaNs for each column:

data.isna().sum()
# Or
data.isnull().sum()

Okay, nothing complicated. Let's move on the task.

Taak

Swipe to start coding

  1. Calculate the number of missing values for the dataset using one of the mentioned functions.
  2. Output the result.

Try to draw your own conclusions.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 5. Hoofdstuk 2
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

close

Awesome!

Completion rate improved to 3.03

bookCalculating the Number of Missing Values

Veeg om het menu te tonen

It should be noted that it isn't convenient to check each value of the dataset for the NaN. It is more convenient to see the number of missing values to conclude columns where we have NaNs. As you remember, we have two functions to check for the missing values. To calculate the sum, just use the .sum() function. Thus, in general, we have 2 options for outputting the number of NaNs for each column:

data.isna().sum()
# Or
data.isnull().sum()

Okay, nothing complicated. Let's move on the task.

Taak

Swipe to start coding

  1. Calculate the number of missing values for the dataset using one of the mentioned functions.
  2. Output the result.

Try to draw your own conclusions.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

close

Awesome!

Completion rate improved to 3.03
Sectie 5. Hoofdstuk 2
single

single

some-alt