Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 1 : A Series showing the count of missing values in each column / प्रत्येक कॉलम में लापता मानों की गिनती वाली Series

Advertisement

Detailed Solution

सही उत्तर A Series showing the count of missing values in each column / प्रत्येक कॉलम में लापता मानों की गिनती वाली Series है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

What does df.isnull().sum() return? / df.isnull().sum() क्या लौटाता है?

1.
A Series showing the count of missing values in each column / प्रत्येक कॉलम में लापता मानों की गिनती वाली Series
2.
The total number of missing values as a single number / लापता मानों की कुल संख्या एक संख्या के रूप में
3.
A DataFrame with missing values removed / लापता मान हटाया हुआ DataFrame
4.
A Boolean DataFrame / बूलियन DataFrame

Correct Answer: A Series showing the count of missing values in each column / प्रत्येक कॉलम में लापता मानों की गिनती वाली Series

isnull() produces a Boolean mask and .sum() counts the True values column-wise, giving missing-value counts per column as a Series. / isnull() बूलियन मास्क बनाता है और .sum() कॉलम-वार True मान गिनता है, जिससे प्रत्येक कॉलम के लापता मानों की गिनती Series के रूप में मिलती है।

Downloaded from PrepSnap (prepsnap.in)