Weeks 3-4  QUIZ Data Manipulation

Weeks 3-4 QUIZ Data Manipulation

University

20 Qs

quiz-placeholder

Similar activities

Season 2 #Spaic Python Weekly Quiz

Season 2 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Section1

Section1

University

20 Qs

Data Science Question

Data Science Question

University

20 Qs

Pandas Python: Trabajo con Datos

Pandas Python: Trabajo con Datos

University

20 Qs

MÓDULOS Y PAQUETES PARA MACHINE LEARNING CON PYTHON

MÓDULOS Y PAQUETES PARA MACHINE LEARNING CON PYTHON

University

20 Qs

Python Pandas Series

Python Pandas Series

University

15 Qs

Beginner Quiz on ML and Python Basics

Beginner Quiz on ML and Python Basics

University

20 Qs

Midterm Exam - DV - Part 1

Midterm Exam - DV - Part 1

University

20 Qs

Weeks 3-4  QUIZ Data Manipulation

Weeks 3-4 QUIZ Data Manipulation

Assessment

Quiz

Computers

University

Easy

Created by

Darwin Vargas

Used 5+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to read a CSV file into a pandas DataFrame?

A. pd.read_csv()

B. pd.read_file()

C. pd.load_csv()

D. pd.csv_read()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you write a pandas DataFrame to an Excel file?

A. df.to_excel()

B. df.save_excel()

C. df.export_excel()

D. df.write_excel()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which argument in read_csv() is used to specify a column as the index of the DataFrame?

A. index_col

B. set_index

C. column_index

D. use_index

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the header parameter in read_csv() control?

A. Whether to read data in chunks

B. The number of columns to read

C. Which row to use as the header

D. The data types of columns

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to check the first few rows of a DataFrame?

A. head()

B. first()

C. top()

D. preview()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method would you use to handle missing values in a pandas DataFrame?

A. dropna()

B. fillna()

C. Both A and B

D. remove_na()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function removes duplicates from a DataFrame?

A. drop_duplicates()

B. clear_duplicates()

C. remove_duplicates()

D. discard_duplicates()

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?