Pandas DataFrame(2) - Combine dataframes

Pandas DataFrame(2) - Combine dataframes

12th Grade

8 Qs

quiz-placeholder

Similar activities

Python Pandas (ai gen)

Python Pandas (ai gen)

12th Grade

10 Qs

pandas

pandas

9th Grade - University

8 Qs

dataFrame

dataFrame

12th Grade

5 Qs

Gr.12_IP_Python Pandas

Gr.12_IP_Python Pandas

12th Grade

5 Qs

Test#1

Test#1

12th Grade

10 Qs

pandas3

pandas3

12th Grade

10 Qs

Quiz - 3 Assignment, Increment & Decrement Operators in C

Quiz - 3 Assignment, Increment & Decrement Operators in C

12th Grade

10 Qs

Relational Database Terminology

Relational Database Terminology

10th - 12th Grade

10 Qs

Pandas DataFrame(2) - Combine dataframes

Pandas DataFrame(2) - Combine dataframes

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Aswathy Krishnakumar

Used 58+ times

FREE Resource

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()

8.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the functions can be used to delete column/row from a DataFrame?

pop()

at()

drop()

iloc()