Search Header Logo

Weeks 3-4 QUIZ Data Manipulation

Authored by Darwin Vargas

Computers

University

Used 5+ times

Weeks 3-4  QUIZ Data Manipulation
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?