wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Pandas- CSV file

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

Full form of CSV file is ...................

a)

Comma Separated Vault

b)

Comma Separated Value

c)

Common Separated Value

d)

Common System Value

2.

Which function from the options given below can read the dataset from a large text file?

a)

read_json

b)

read_pickle

c)

read_hdf

d)

read_csv

3.

Which is the correct Pandas syntax to read in a csv file and assign it to a DataFrame df?

a)

df = read_csv('file.csv')

b)

df = read('file.csv', type = 'csv')

c)

df = pd.read_csv('file.csv')

d)

df = with open('file.csv') as pd.DataFrame

4.

Which functions used to transfer data from dataframe to CSV files?

a)

to_data()

b)

to_csv()

c)

df_csv()

d)

from_dataframe()

5.

Which among these are correct , regarding csv files?

a)

A common format for data interchange

b)

Standard way to represent binary data.

c)

It can be opened in spreadsheet packages like MS-Excel, Calc etc

d)

There is no distinction between text and numeric values.

6.

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

a)

names

b)

header

c)

skiprows

d)

index_col

7.

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

8.

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

9.

Argument used to skip rows while fetching data from csv file

a)

skiprow

b)

skip_row

c)

SkipRows

d)

skiprows

10.

Default separator of csv

a)

Tab

b)

Space

c)

Comma

d)

Pipe

11.

The csv file is a __________ file.

a)

Plain text

b)

binary

c)

combination of both

12.

The separator character which is used in csv file is called as _____________.

a)

delimiter

b)

Semicolon

c)

colon

d)

tab space