1. Home
  2. Data Science
  3. Pandas
  4. What distinguishes pd.concat from DataFrame.merge?

Added 30 Nov -0001

What distinguishes pd.concat from DataFrame.merge?

  1. concat joins frames on shared keys
  2. merge stacks frames along an axis
  3. merge needs identical column names
  4. concat stacks frames along an axis Correct answer

Correct answer

D. concat stacks frames along an axis

14 views

MCQSEXAM

Explanation

concat glues objects along an axis, while merge performs database-style joins on common keys.

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