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