import Flashcards
1
Q
Read a csv
A
df = pd.read_csv(“data.csv”)
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)