I am stuck when it comes to creating the plots as I don't know how to define the x and y variable. I was planning on making the countries as the x variable and then making the dates for the COVID cases as the y variable. I want to know what is the best way to do this. Furthermore, is there any way to plot each country in a different subplot?
Thank you for the help.
I have attached the following piece of code:
import pandas as pd
cases_raw = pd.read_csv(
filepath_or_buffer='https://raw.githubusercontent.com/aps1070-2019/datasets/master/APS_COVID_Jan22.csv',
index_col=0,
thousands=','
)
from matplotlib import pyplot
display(cases_raw)
df = pd.DataFrame(data=cases_raw)
df.index.tolist() #returns the list of countries
cases_raw.loc['Canada'] #733 cases
