From c95f44b62c0f7b009e792fdd9ab9f6c080c9cf8f Mon Sep 17 00:00:00 2001 From: Guangya Liu Date: Fri, 2 Aug 2024 15:54:32 -0400 Subject: [PATCH] streamlit example --- streamlit-test/streamlit-example.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 streamlit-test/streamlit-example.py diff --git a/streamlit-test/streamlit-example.py b/streamlit-test/streamlit-example.py new file mode 100644 index 0000000..00cb96e --- /dev/null +++ b/streamlit-test/streamlit-example.py @@ -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) \ No newline at end of file