S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method returns the first non-null value in each column?

  • (A) first()
  • (B) first_valid_index()
  • (C) bfill()
  • (D) ffill()
  • Correct Answer - Option(B)
  • Views: 7
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey
The first_valid_index() method returns the index of the first non-null value for a Series or DataFrame column.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.