Whole CSV displaying when using streamlit download button

Hey Guys,

When using Streamlit download button, the whole CSV is being displayed in UI, I only want the Download option to appear.

I am trying to compare two dataframes and create a UI which will download the mismatch data as excel.

But in the UI both the two dataframes are being shown, which I dont want.

I want only the Download Button to be visible

Is there any way I can achieve this?

thank you

Hi @Sudharshan_Sunder, welcome to the Streamlit community!

Please post your code and/or a link to a GitHub repo so that the community can give you meaningful suggestions based on what you’ve already tried.

Best,
Randy

Hello @randyzwitch,

Thank you very much for your reply. I was able to solve the issue

Regards,
Sudharshan