Day 6 and 7

Day 6 and 7

Professional Development

15 Qs

quiz-placeholder

Similar activities

Network+ 20q

Network+ 20q

Professional Development

20 Qs

MS Excel Basics

MS Excel Basics

5th Grade - Professional Development

20 Qs

Review SQL+ Pandas

Review SQL+ Pandas

Professional Development

10 Qs

Season 2 #Spaic Python Weekly Quiz

Season 2 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Python Libraries Series - Pandas

Python Libraries Series - Pandas

Professional Development

11 Qs

Foundations II. Challenge II

Foundations II. Challenge II

Professional Development

15 Qs

Post test data science day 24

Post test data science day 24

Professional Development

10 Qs

Network Fundamentals-Data Link Layer

Network Fundamentals-Data Link Layer

9th Grade - Professional Development

11 Qs

Day 6 and 7

Day 6 and 7

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Akash 1705004

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 10 pts

Which method would you use to concatenate two DataFrames?

pd.merge()

pd.join()

pd.concat()

pd.append()

2.

MULTIPLE CHOICE QUESTION

10 sec • 10 pts

How can you check the first 5 rows of a DataFrame named df?

df.head()

df.first(5)

df.rows(5)

df.show(5)

3.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

How do you delete a column in a dataframe permanently?

  1. df.drop('new_column', axis=1, inplace=True)

  1. df.drop('new_column', axis=1)

  1. df.drop('new_column')

  1. df.drop('new_column', axis=1, inplace=False)

4.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Which is the correct way to select a column from a DataFrame named df?

df.select('column_name')

df['column_name']

df.column_name

Both B and C are correct.

5.

MULTIPLE CHOICE QUESTION

10 sec • 10 pts

Which method is used to replace missing values in a DataFrame df?

df.fillna(value)

df.replace_null(value)

df.set_values(value)

df.impute(value)

6.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

How can you set multiple columns as the index of a DataFrame df?

df.set_index(['col1', 'col2'])

df.index(['col1', 'col2'])

df.primary_key(['col1', 'col2'])

df.use_index(['col1', 'col2'])

7.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

What is the output of df.describe() where df is a DataFrame?

A DataFrame summarizing the mean, median, and mode of each column

A DataFrame showing the first, second, and third quartiles of each column

A DataFrame providing descriptive statistics

A DataFrame listing the maximum and minimum values of each column

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?