You are the manager of a small bakery, and you want to analyze the weekly sales of your baked goods. The bakery sells five types of items: Bread, Cakes, Muffins, Cookies, and Pastries. At the end of the week, you want to input the sales figures for each item, display them in a table, and generate a bar chart to visualize which items sold the most.
Set up the Streamlit app structure:
streamlit
, pandas
, plotly.express
).Create input fields for sales data:
st.number_input
for each item to collect the weekly sales figures for Bread, Cakes, Muffins, Cookies, and Pastries.Process the data:
st.dataframe
.Visualize the data:
st.plotly_chart
.Run the app:
streamlit run app.py
.We’re always looking for international STEM educators to join our team. If you are interested, please send us a mail and we’ll get back to you!
If you have any questions, kindly send us a mail. Don’t forget to follow and like all our social accounts to get updates on competitions!