Summary
I used the following example: Auto-generate a dataframe filtering UI in Streamlit with filter_dataframe!
And want to download the filtered data frame generated But i get an error
Steps to reproduce
Code snippet:
def download_csv(name,df):
csv = df.to_csv(index=False)
base = base64.b64encode(csv.encode()).decode()
file = (f'<a href="data:file/csv;base64,{base}" download="%s.csv">Download file</a>' % (name))
return file
st.markdown(download_csv('Filtered Data Frame',filter_dataframe(df)),unsafe_allow_html=True)
If applicable, please provide the steps we should take to reproduce the error or specified behavior.
Download the data frame
Explain what you expect to happen when you run the code above.
Error on line 41 and 121 with duplicatated key for st.checkbox
Can anyone help me?
Thanks