Question

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

Option 1 : Removes rows containing missing values / लुप्त मानों वाली पंक्तियाँ हटाती है

Advertisement

Detailed Solution

सही उत्तर Removes rows containing missing values / लुप्त मानों वाली पंक्तियाँ हटाती है है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

In Pandas, what does the method df.dropna() do? / Pandas में df.dropna() विधि क्या करती है?

1.
Removes rows containing missing values / लुप्त मानों वाली पंक्तियाँ हटाती है
2.
Fills missing values with zero / लुप्त मानों को शून्य से भरती है
3.
Removes duplicate rows / पुनरावृत्त पंक्तियाँ हटाती है
4.
Deletes the entire DataFrame / संपूर्ण DataFrame हटा देती है

Correct Answer: Removes rows containing missing values / लुप्त मानों वाली पंक्तियाँ हटाती है

dropna() drops rows (by default) containing NaN/missing values; fillna() fills them. / dropna() लुप्त मानों वाली पंक्तियाँ हटाती है।

Downloaded from PrepSnap (prepsnap.in)