3. Pandas Basic Quiz II

3. Pandas Basic Quiz II

Professional Development

10 Qs

quiz-placeholder

Similar activities

Quiz

Quiz

University - Professional Development

15 Qs

Sanchay Plus

Sanchay Plus

Professional Development

10 Qs

BCSI AWARENESS

BCSI AWARENESS

KG - Professional Development

15 Qs

How well do you know SCC?

How well do you know SCC?

Professional Development

15 Qs

Easter & Ramadan Quiz 2022

Easter & Ramadan Quiz 2022

Professional Development

15 Qs

Transformers Universe Quiz

Transformers Universe Quiz

3rd Grade - Professional Development

10 Qs

Current affairs and GK

Current affairs and GK

Professional Development

10 Qs

Referencing

Referencing

University - 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?