1. Home
  2. Data Science
  3. Pandas
  4. The merge() function in pandas is used to:

Added 30 Nov -0001

The merge() function in pandas is used to:

  1. filter rows by a given condition
  2. rename the columns of a DataFrame
  3. calculate summary statistics for columns
  4. combine two DataFrames on a common key Correct answer

Correct answer

D. combine two DataFrames on a common key

15 views

MCQSEXAM

Explanation

merge performs database-style joins using one or more key columns.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Pandas MCQs

Practise all Pandas MCQs

Similar MCQs