Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

csv and DataFrame

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

The acronym csv is short for

a)

Comma Special Values

b)

Comma Separated Values

c)

Case Separated Values

d)

Comma Separate Values

2.

A common format for data interchange

a)

xlsx

b)

csv

c)

docx

d)

table

3.

Method used to bring data from a csv file into a DataFrame

a)

readcsv()

b)

read_table()

c)

read_csv()

d)

read-csv()

4.

Argument used to provide own column headings instead of column headings in csv file

a)

names

b)

header

c)

skiprows

d)

index_col

5.

Select the correct way to give the path of the file in read_csv()

a)

C:/data/myfile.csv

b)

C:\\data\\myfile.csv

c)

C:\data\myfile.csv

d)

C:data/myfile.csv

6.

If the argument header=None is given, what will be the headings

a)

1,2,3 etc

b)

A,B,C etc

c)

0,1,2 etc

d)

I,II,iii

7.

Argument used to skip rows while fetching data from csv file

a)

skiprow

b)

skip_row

c)

SkipRows

d)

skiprows

8.

Default separator of csv

a)

Tab

b)

Space

c)

Comma

d)

Pipe

9.

pd.read_csv(‘data.csv’,skiprows=[1,2,3,6]

What this statement trying to do

a)

Code reads csv file namely data.csv and it will read records 1,2,3,6

b)

Code reads csv file namely data.csv and it will skip 1,2,3,6

c)

Code reads csv file namely data.csv and it will provide headings as 1,2,3,6

10.

Command to be given before doing anything with Pandas

(a)