import Flashcards

1
Q

Read a csv

A

df = pd.read_csv(“data.csv”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Build a small dataframe

A
list_countries = [...]
list_population = [...]
my_dict = {'country' :  list_countries, 'population' : list_population}
my_df = pd.DataFrame(my_dict)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly