Question
Computer Science Question on While Loop
_____ will drop all rows that have NaN values in them while _____ will drop only those rows that have all NaN values.
A
dropna (how-'all'),dropna()
B
dropna(), dropna(how='all')
C
fillna()
D
deletena(how='all').deletena()
Answer
dropna(), dropna(how='all')
Explanation
Solution
The correct option is (B) :dropna(), dropna(how='all').