Skip to content

Commit e5a33a1

Browse files
authored
Remove notes
Remove notes
2 parents 88959bc + d594fef commit e5a33a1

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
display_header(st, m, p)
3434

3535
st.subheader("New Admissions")
36-
st.markdown("Projected number of **daily** COVID-19 admissions. \n\n _NOTE: Now including estimates of prior admissions for comparison._")
36+
st.markdown("Projected number of **daily** COVID-19 admissions.")
3737
admits_chart = build_admits_chart(alt=alt, admits_floor_df=m.admits_floor_df, max_y_axis=p.max_y_axis)
3838
st.altair_chart(admits_chart, use_container_width=True)
3939
display_download_link(
@@ -43,7 +43,7 @@
4343
)
4444

4545
st.subheader("Admitted Patients (Census)")
46-
st.markdown("Projected **census** of COVID-19 patients, accounting for arrivals and discharges \n\n _NOTE: Now including estimates of prior census for comparison._")
46+
st.markdown("Projected **census** of COVID-19 patients, accounting for arrivals and discharges.")
4747
census_chart = build_census_chart(alt=alt, census_floor_df=m.census_floor_df, max_y_axis=p.max_y_axis)
4848
st.altair_chart(census_chart, use_container_width=True)
4949
display_download_link(

src/penn_chime/charts.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,12 @@ def build_sim_sir_w_date_chart(
125125
.configure_legend(orient="bottom")
126126
.interactive()
127127
)
128+
129+
130+
def build_table(
131+
*, df: pd.DataFrame, labels: Dict[str, str], modulo: int = 1
132+
) -> pd.DataFrame:
133+
table_df = df[np.mod(df.day, modulo) == 0].copy()
134+
table_df.date = table_df.date.dt.strftime(DATE_FORMAT)
135+
table_df.rename(labels)
136+
return table_df

0 commit comments

Comments
 (0)