Question: Step 2: Complete the Python code below to plot both the cummulative number of COVID cases in the US (column 3 of us.csv) and the

Step 2: Complete the Python code below to plot both the cummulative number of COVID cases in the US (column 3 of us.csv) and the cummulative number of deaths (column 4) as a function of time In 1: Complete these next dates - cases - deaths 19. ax - plt. subplots) plt.plot(dates, cases, label='Cumulative Cases plt.plot(dates, deaths, label='Cumulative Death plt.xlabel('date') plt.ylabel Number of Us Residenta pit. Legend) These last two lines are not strictly required, but they make our plot look prettier by making sure we don't let every single date on the is ax.xaxis.net_major_locatoripit.Max Locator (15) pit.xtiek (rotation 45, haigh F A B D E 1 date days since 1. cummulative cummulative deaths 2 1/21/20 0 1 0 3 1 1/22/20 1 0 4 1/23/20 2 1 0 5 1/24/20 3 2 0 6 1/25/20 4 3 0 7 1/26/20 5 5 0 8 1/27/20 6 5 0 9 1/28/20 7 5 0 10 1/29/20 8 5 0 11 1/30/20 9 6 0 12 1/31/20 10 7 0 13 2/1/20 11 8 0 14 2/2/20 12 11 0 15 2/3/20 13 111 0 16 2/4/20 14 11 0 17 2/5/20 15 12 0 18 2/6/20 16 12 0 19 2/7/20 17 12 O 20 2/8/20 18 12 0 21 2/9/20 19 12 0 22 2/10/20 20 13 0 23 2/11/20 21 13 0 24 2/12/20 22 14 0 25 2/13/20 23 15 o 26 2/14/20 24 15 O 27 2/15/20 25 15 0 28 2/16/20 26 15 0 29 2/17/20 27 25 0 30 2/18/20 28 25 0 2/19/20 29 25 0 32 2/20/20 30 27 0 33 2/21/20 31 30 0 34 2/22/20 32 30 0 35 2/23/20 33 30 o 36 2/24/20 34 0 37 2/25/20 35 45 38 2/26/20 36 60 39 2/27/20 37 60 40 2/28/20 38 65 41 2/29/20 39 70 1 42 3/1/20 40 88 3 3/2/20 41 104 44 31/3/20 42 125 10 45 uscovid Desde
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
