Question: Wrangle the data frame df that we read in at the top of the notebook into the format required above, saving it as variable df2.

Wrangle the data frame df that we read in at the top of the notebook into the format required above, saving it as variable df2. Separate out the dependent variable :students_infected (which you will also have to wrangle into existance) and save it as variable yy to use for training

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock