Cleaning in Python Quiz

Cleaning in Python Quiz

University

18 Qs

quiz-placeholder

Similar activities

Pyspark MLib

Pyspark MLib

University

20 Qs

SDS Recruitment Re-Quiz

SDS Recruitment Re-Quiz

University

13 Qs

SQL

SQL

University

20 Qs

Pandas and Data Visualization Quiz

Pandas and Data Visualization Quiz

University

20 Qs

Season 5 #Spaic Python Weekly Quiz

Season 5 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Sjmit-Q2-[Workshop-MAR-25]

Sjmit-Q2-[Workshop-MAR-25]

12th Grade - University

20 Qs

PC3: TRATAMIENTO DE DATOS

PC3: TRATAMIENTO DE DATOS

9th Grade - University

20 Qs

Python Workshop Day - 2

Python Workshop Day - 2

University

15 Qs

Cleaning in Python Quiz

Cleaning in Python Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Abdullah Muhammad 201-801-271

FREE Resource

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

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?