i am new to Pyhton and Streamlit so i would be greatfull for a push in the right direction.
Also i might lack vocabulary so i try to explain what i am looking for.
I got a Pyhtonscript with Streamlit running that reads multiple CSV Files that are saved in DataFrames.
Then the user can select with a dropdown selection one entry and with a datepicker a second.
Calculations are done according to the selection.
Now i want to save the data with calculations in a dataFrame so i can at the end of the session save it to CSV (Basicaly a log file of all selections with calculation results)
for this i made a button. When i push this button the selection is appended to the DataFrame.
However everytime the selection changes, the whole script reruns, essentially wiping all previous data.
How can i make permanent variables.
Or can you just make sections of the script that shoudl rerun?