S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method is used to combine DataFrames with overlapping columns, filling missing values with NaN?

  • (A) merge()
  • (B) concat()
  • (C) join()
  • (D) combine_first()
  • Correct Answer - Option(D)
  • Views: 21
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey

combine_first() combines two DataFrames, filling missing values in one DataFrame with values from the other.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.