
Pandas DataFrame(2) - Combine dataframes
Authored by Aswathy Krishnakumar
Computers
12th Grade
Used 58+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Among the following functions, which one uses patching the data method.
merge()
concat()
combine_first()
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Among the following functions, which one can be used to combine dataframes when they have similar structure.
combine_first
concat()
merge()
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
For the concat(), if the axis=1, it will join the dataframes ...............
vertically
horizontally
4.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
Which among these are correct for combine_first()?
All its empty values will be retained
only missing values are copied from other dataframe
all non-matching rows from other dataframe is copied
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
While we concat, if we do not want the mechanism for row indexes and want to have new row indexes generated from 0 to n-1, then we can give argument ignore_index as .............
False
True
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which function can be used to combine dataframes based on common fields?
merge()
combine_first()
concat()
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which function views dataframe in the form of vertical subset ie column wise?
iterrows()
iteritems()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?