S

Sikhar Chaudhary • 5.88K Points
Tutor III

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

Explanation by: Sikhar Chaudhary
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.


Question analytics