wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Pandas - CSV file

Total questions: 10

Worksheet time: 3mins

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 of the following object you get after reading CSV file?

a)

DataFrame

b)

Character Vector

c)

Panel

d)

All of the mentioned

5.

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

a)

to_data()

b)

to_csv()

c)

df_csv()

d)

from_dataframe()

6.

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.

7.

How the mode can be specified, if we want to add the remaining records into already existing csv file?

a)

mode="w"

b)

mode="a"

c)

mode="append"

d)

mode="write"

8.

Which library should be imported, if we want to use the function isfile() ?

a)

pandas

b)

os.path

c)

numpy

d)

random

9.

Which among these is having correct syntax for writing into a csv file?

a)

pd.to_csv(“emp.csv”)

b)

df.tocsv(“emp.csv”)

c)

df.to_csv(“emp.csv”)

10.

(a)   argument of read_csv() is used to specify the number of rows to be read from the file.