What does df.dropna() do with its default arguments?
-
A
Drops columns holding any missing value
-
B
Fills every missing value with zero
-
C
Drops repeated index entries
-
D
Drops rows holding any missing value
Correct answer
Correct answer
D. Drops rows holding any missing value
13 views
Explanation
dropna defaults to how='any' along axis 0, so any row containing a NaN is removed.
Reference
Asked in: NTS, PPSC IT, Interviews
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ