You are the manager of a coffee shop tracking weekly sales for five popular beverages: Espresso, Cappuccino, Latte, Mocha, and Americano. Input the weekly sales for each beverage, display the data in a table, and create a bar chart to see which beverage is the top seller.
Set up the Streamlit app:
streamlit
, pandas
, and plotly.express
.Input sales data:
st.number_input
to enter sales for Espresso, Cappuccino, Latte, Mocha, and Americano.Display data:
st.table
to display the data.Create a bar chart:
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!