Question

In Python, which of the following functions in the Pandas library is used to merge two DataFrames df1 and df2 on a common column id?

A df1.merge(df2, on='id')
B pd.concat(df1, df2, on='id')
C df1.join(df2, on='id')
D pd.merge(df1, df2, axis=0)
E df1.merge(df2, axis=1)
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)