Skip to content

Commit

Permalink
Auto-commit: Mon Nov 18 13:14:03 CST 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
NAME committed Nov 18, 2024
1 parent f142fe5 commit 0f86c94
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions week13/inClassStreamlit/Home.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# we will often times use an app.py instead of a workbook so here is just a placeholder for that kind of file as well!
import streamlit as st
import matplotlib.pyplot as plt

st.set_page_config(
page_title='Hello',
Expand Down Expand Up @@ -58,28 +59,8 @@

st.header("Day 2 (Week 11)")

# Read in data with pandas
import pandas as pd
df = pd.read_csv(mobility_url)

#df
st.write(df)

import matplotlib.pyplot as plt
fig, ax = plt.subplots()
df['Seg_income'].plot(kind='hist',ax=ax)
#plt.show() # need to use streamlit infrastructure for this
st.pyplot(fig)

st.write("""Note I have added some things to
the requirements.txt file. """)
st.code("""
streamlit==1.39.0
altair
numpy
matplotlib
pandas
""")

st.header("Widgets in Streamlit apps")

Expand Down

0 comments on commit 0f86c94

Please sign in to comment.