3. Pandas Basic Quiz II

3. Pandas Basic Quiz II

Professional Development

10 Qs

quiz-placeholder

Similar activities

MY566 General Safety & Security Quiz

MY566 General Safety & Security Quiz

Professional Development

10 Qs

Outerbanks

Outerbanks

KG - Professional Development

10 Qs

what do you know?

what do you know?

Professional Development

10 Qs

?Riddles for kids?

?Riddles for kids?

3rd Grade - Professional Development

10 Qs

ICE BREAKERS

ICE BREAKERS

Professional Development

12 Qs

More about India

More about India

KG - Professional Development

15 Qs

OSH - Module 1

OSH - Module 1

Professional Development

11 Qs

CMPS QUIZ

CMPS QUIZ

Professional Development

10 Qs

3. Pandas Basic Quiz II

3. Pandas Basic Quiz II

Assessment

Quiz

Other

Professional Development

Practice Problem

Medium

Created by

Bayu Prasetya

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

df = df.drop("B", axis=1)

Which of the following drops column "B" permanently?

Yes, if inplace=True

Yes, because reassigned to df

No, needs df.drop(columns="B")

No, drop doesn’t work for columns

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to sort dataframe by values in column "Age"

df.sort("Age")

df.sort_values("Age")

df.sort_index("Age")

df["age"].sort_values()

df["age"].sort_index()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does df.describe() do?

Shows first 5 rows

Returns summary statistics of numeric columns

Returns summary statistics from all colums

Prints schema of DataFrame

error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the result of..

Mean of each row

Mean of each column

Single scalar mean

error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code groups DataFrame by column "Department" and takes mean?

df.groupby("Department").mean()

df.aggregate("Department", "mean")

df.Department.mean()

df.mean().groupby("Department")

df["Department"].mean()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will this output?

Keeps NaN unchanged

Replaces all NaN with 0

Drops rows with NaN

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method resets index back to default (0,1,2...)?

df.drop_index()

df.reset_index()

df.rename_index()

df.index.reset()

df.set_index()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?