Example #1
0
def county_case_charts(county_state_name, start_date):
    df = prep_county(county_state_name, start_date)
    name = df.county.iloc[0]
    # 'date' column is not JSON serializable...
    # If we drop and use date2, chart will work (https://github.com/altair-viz/altair/issues/1355) 
    make_charts.make_cases_deaths_chart(df, "county", name)
    return df
Example #2
0
def msa_case_charts(msa_name, start_date):
    df = prep_msa(msa_name, start_date)
    name = df.msa.iloc[0]
    make_charts.make_cases_deaths_chart(df, "msa", name)
    return df
Example #3
0
def state_case_charts(state_name, start_date):
    df = prep_state(state_name, start_date)
    name = df.state.iloc[0]
    make_charts.make_cases_deaths_chart(df, "state", name)
    return df
Example #4
0
def lacity_case_charts(start_date):
    df = prep_lacity_cases(start_date)
    name = "City of LA"
    make_charts.make_cases_deaths_chart(df, "lacity", name)
    return df