Pandas DataFrame(2) - Combine dataframes

Pandas DataFrame(2) - Combine dataframes

12th Grade

8 Qs

quiz-placeholder

Similar activities

PP-I Quiz-II

PP-I Quiz-II

12th Grade

8 Qs

PySpark Day2

PySpark Day2

12th Grade

9 Qs

Dataframe

Dataframe

12th Grade

10 Qs

Microsoft Word 2016 Tables

Microsoft Word 2016 Tables

8th - 12th Grade

13 Qs

Lesson 14-16 Tables

Lesson 14-16 Tables

6th Grade - University

10 Qs

DataFrame

DataFrame

12th Grade

10 Qs

String Format

String Format

12th Grade

10 Qs

Informatics Practices:Python Pandas

Informatics Practices:Python Pandas

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