Skip to content

Commit

Permalink
streamlit example (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyliu513 authored Aug 2, 2024
1 parent 92db6eb commit 5636fde
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions streamlit-test/streamlit-example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import streamlit as st
import pandas as pd
import numpy as np

st.title('Simple Streamlit App')

st.write("Here's our first attempt at using Streamlit:")
st.write(pd.DataFrame({
'Column A': [1, 2, 3, 4],
'Column B': [10, 20, 30, 40]
}))

st.write("A random chart:")
chart_data = pd.DataFrame(
np.random.randn(20, 3),
columns=['a', 'b', 'c']
)

st.line_chart(chart_data)

0 comments on commit 5636fde

Please sign in to comment.