To my understanding you cannot have a button that executes a specific task - in my case it brings data from a database and displays it in my streamlit app- and then another button to use those data fetched in the background in order to display e.g. another dataframe with the aforementioned data analysed in any way.
Is this true?
Apologies if I havent phrased my problem in a straightforward manner but can someone redirect me to another post or any resource available. It is too difficult for me to create an app without refreshing the whole code when clicking on a button.