S

Shyam Dubey • 3.70K Points
Extraordinary

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: 1
  • Filed under category Pandas
  • Hashtags:

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.