You are a gym manager tracking weekly attendance for five fitness classes: Yoga, Zumba, Pilates, Spin, and CrossFit. Input the weekly attendance for each class, display the data in a table, and generate a bar chart to visualize the most attended classes.
Set up the Streamlit app:
streamlit, pandas, and plotly.express.Collect attendance data:
st.number_input to input attendance for Yoga, Zumba, Pilates, Spin, and CrossFit.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!
