You manage a bookstore and want to analyze weekly sales for five categories: Fiction, Non-fiction, Comics, Magazines, and Textbooks. Input the weekly sales for each category, display the data in a table, and create a bar chart to show which category sold the most.
Set up the Streamlit app:
streamlit
, pandas
, and plotly.express
.Input sales data:
st.number_input
to enter sales for Fiction, Non-fiction, Comics, Magazines, and Textbooks.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!