Streamlit Application to Append Data
I woke up and thought of putting my thoughts for creating a Web Application for appending data.
Requirements
We will write code in python. So, we need writer for data to append in csv file and for web application we need Streamlit
Before going into python coding first make a csv file, So the name csv file will be data.csv
Let’s add some heading for the application.
Now let’s create variables and asking user to give their respected inputs for the entry in the csv
Let’s create a submit button for submission of values in which contain values of data.
st.button(“Submit Information”)
But this is not sufficient, we need to append the data into csv, So the workaround for this is as follows:
If the submit button is pressed append the data stored into the csv. So, we need a writer object which will append data but before that we have to open the csv with python code and apply the method of append, And at last close the file. Here we go for the code
Then add a message box at bottom after successful append of data.
st.info(“Data appended successfully.”)
Find Code in my GitHub Repo