Skip to content

Commit 94f2845

Browse files
author
Andrew DiBiasio
committed
Issue #239: Fixed off by one day in csv download files
1 parent 1bb66f6 commit 94f2845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/penn_chime/presentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def write_footer(st):
472472

473473

474474
def display_download_link(st, filename: str, df: pd.DataFrame):
475-
csv = dataframe_to_base64(df)
475+
csv = dataframe_to_base64(df[:-1]) # Overcome zero index error with panda df
476476
st.markdown(
477477
"""
478478
<a download="{filename}" href="data:file/csv;base64,{csv}">Download {filename}</a>

0 commit comments

Comments
 (0)