The merge() function in pandas is used to:
-
A
filter rows by a given condition
-
B
rename the columns of a DataFrame
-
C
calculate summary statistics for columns
-
D
combine two DataFrames on a common key
Correct answer
Correct answer
D. combine two DataFrames on a common key
15 views
Explanation
merge performs database-style joins using one or more key columns.
Reference
Asked in: NTS, PPSC IT, Interviews
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ