Quiz3

Quiz3

University

15 Qs

quiz-placeholder

Similar activities

Java : Array

Java : Array

University

10 Qs

Pyspark MLib

Pyspark MLib

University

20 Qs

Java Programming I 2

Java Programming I 2

University

19 Qs

Pandas Package

Pandas Package

University

13 Qs

Julia

Julia

University

10 Qs

23S1 1906

23S1 1906

University

11 Qs

Graficas con matlab y pandas

Graficas con matlab y pandas

University

10 Qs

OOP - Quiz

OOP - Quiz

University

15 Qs

Quiz3

Quiz3

Assessment

Quiz

Computers

University

Medium

Created by

Sabina Adhikari

Used 10+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function name that reads the csv file?

read-csv()

read_csv()

readcsv()

read_csv

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the best correct way to save the csv file?

to_csv(save_file.csv)

to_csv('save_file')

to_csv('save_file.csv')

save_csv('save_file.csv')

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

What is/are the correct way/s to get the column 'Region' only?

df['Region']

df.iloc[: , 2]

df.iloc[2]

df[:, 2]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the correct way to get the rows with 'ID' = 3 and 'ID' = 5?

df.iloc[[2, 4]]

df.iloc[[3, 5]]

df.iloc[3:5]

df.iloc[2:6]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What attribute returns the column labels in pandas?

DataFrame.titles

DataFrame.titles()

DataFrame.columns

DataFrame.columns()

6.

OPEN ENDED QUESTION

1 min • 1 pt

Explain token and delimiter with examples.

Evaluate responses using AI:

OFF

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

string1 = 'hello world how are you'

output_final = ['hello', 'world', 'how', 'are', 'you']

What is/are the correct method/s to get the output_file using string1?

string1.split()

string1.split(' ')

string1.split(', ')

string1.split('_')

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?