0
Covid Cases Analysis - need help
question: You are working with the COVID dataset for California which includes the number of cases and deaths per day. find the day when the deaths/cases ratio was highest. First, calculate the deaths/cases ration, then find the row that corresponds to the largest value Important note: Your output should be a dataFrame containing all columns for that row HERES WHAT I HAVE SO FAR import pandas as pd df = ps.read.csv("/usercode/files/ca-covid.csv") df.drop('state', axis=1, inplace=True) df.set_index('date', inplace=True) df['ratio'] = df['deaths'] / df['cases'] ## Anyway, I'm stuck here, can someone point me in the right direction?
1 Antwort
- 1
Thanks again! :-D