Hello, I have a code in which I give the app used the option to download data as a csv as follows:
st.download_button(label=‘ Bajar Resultados’,
data=score_model ,
file_name= ‘Defaults.csv’)
where score_model is a pandas df.
I get the following error:
raise RuntimeError(“Invalid binary data format: %s” % type(data))
Does anyone undesrtand why?
Thank you