wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

FinTech 03-2 Pandas

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which are objectives of Unit 03-2 Python-Pandas Day 2?

a)

Built-in DataFrame functions

b)

Pandas vs spreadsheets

c)

Scraping websites with Pandas

d)

What are DataFrames vs Series

e)

Read in and manipulate CSVs

2.

Which is the 1D Pandas data structure?

a)

List

b)

Array

c)

Series

d)

DataFrame

e)

Dictionary

3.

Which is the 2D Pandas data structure?

a)

List

b)

Array

c)

Series

d)

DataFrame

e)

Dictionary

4.

Which are Pandas native functions?

a)

count()

b)

value_counts()

c)

items()

d)

isnull()

e)

append()

5.

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

6.

Type the syntax that returns the top 5 rows in DataFrame df with the native Pandas function (not slicing):

(a)  

7.

Given col_names = ['A', 'B', 'C', 'D'], set the column names of DataFrame df to col_names:

(a)  

8.

You want to clean a column that has extra $ characters. Use _____ to find them and _____ to remove them:

a)

isna(), fillna()

b)

dtype, astype()

c)

contains(), replace()

d)

count(), drop()

9.

How was Unit 03 Day 2 for you?

4 lines
10.

Any suggestions for improvement?

4 lines