Uploading and Reading Files with Streamlit
Allow Your Streamlit Dashboard Users to Upload Their Own Data
Streamlit is an awesome open-source Python library that can be used to create interactive dashboards and applications. This can help simplify the data science workflow. If you are just starting out with Streamlit, at some point you are going to want to allow users to upload their own data. This is easily achieved with the file_uploader
function.
Within this short article we are going to cover the essentials of the file_uploader
function from Streamlit. We will go through the basics of using it to upload single files, multiple files and how to read the uploaded files.
This article forms part of a series of articles I have created on Streamlit. You can explore the other articles at the links below.
- Getting Started With Streamlit Web Based Applications
- Creating True Multi-Page Streamlit Apps — The New Way (2022)
- Getting Started With Streamlit: 5 Functions You Need to Know When Starting Out
- The Streamlit Colour Picker: An Easy Way to Change Chart Colours on Your Streamlit Dashboard
- How to Use Streamlit’s st.write Function to Improve Your Streamlit Dashboard