Search Header Logo

Cleaning in Python Quiz

Authored by Abdullah Muhammad 201-801-271

Computers

University

Cleaning in Python Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python library is most commonly used for data cleaning and manipulation?

NumPy

SciPy

Pandas

Matplotlib

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function used in Pandas to identify missing values in a DataFrame?

isna()

fillna()

dropna()

replace()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you remove duplicate rows from a Pandas DataFrame?

DataFrame.drop_duplicates()

DataFrame.dropna()

DataFrame.remove_duplicates()

DataFrame.fillna()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method would you use to fill missing values in a DataFrame with the mean of a column?

fillna(mean)

fill(mean)

replace(na,mean)

fillna(DataFrame['column_name'].mean())

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function in Pandas is used to detect and remove outliers in a dataset?

DataFrame.describe()

DataFrame.dropna()

DataFrame.clip()

There is no direct function; outliers are typically handled using custom methods like IQR or Z-score.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function can you use in Pandas to rename the columns of a DataFrame?

rename_columns()

rename()

columns_rename()

change_columns()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you convert all string values in a DataFrame column to lowercase using Pandas?

DataFrame['column_name'].lower()

DataFrame['column_name'].apply(lower)

DataFrame['column_name'].str.lower()

DataFrame['column_name'].convert_lower()

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?