Quiz: Missing and Duplicated Data

Quiz yourself on missing and duplicated data in pandas series.

1

Look at the given DataFrame ‘df’ below:

    a    b    c    
0   1    NaN  3    
1   4    5    6
2   7    NaN  NaN

How can we get the count of all NaN values in the DataFrame in Pandas?

A)

df.isna().sum()

B)

df.isna().sum().sum()

C)

df.isna().sum(axis = 1)

D)

df.isna().count()

Question 1 of 50 attempted

Get hands-on with 1400+ tech skills courses.