Skip to content
Snippets Groups Projects
Commit 5f1e64c8 authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Correcting title for a graph

parent 0f66eed2
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ def draw_tot_cases_graph(df):
def draw_tot_deaths_graph(df):
tot_cases_by_day = df.groupby("date")["deaths"].sum()
st.write("Total cases(US):")
st.write("Total deaths(US):")
st.line_chart(tot_cases_by_day)
......@@ -30,8 +30,8 @@ def draw_map(df, state, co, date):
st.subheader(f"Map of CoVid cases on {date} for {co}, {state}")
st.map(st_co_data_for_date)
st.write(f"{len(st_co_data_for_date.index)} counties affected in {co}, {state}")
st.write(f"Total deaths on {st_co_data_for_date.groupby('date')['deaths'].sum()}")
st.write(f"Total cases on {st_co_data_for_date.groupby('date')['cases'].sum()}")
st.write(f"Total deaths till {st_co_data_for_date.groupby('date')['deaths'].sum()}")
st.write(f"Total cases till {st_co_data_for_date.groupby('date')['cases'].sum()}")
# if not state == "All":
# for index, row in st_co_data_for_date:
# st.write(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment