S

Sikhar Chaudhary • 5.88K Points
Tutor III

Q. Which method removes all rows where any column is NaN in a DataFrame?

  • (A) dropna()
  • (B) fillna()
  • (C) replace()
  • (D) notna()
  • Correct Answer - Option(A)
  • Views: 25
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
dropna() removes rows (or columns) that contain missing values (NaN).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics