MT_deploy / home.py
mintlee's picture
Add application file
0e9ff78
raw
history blame
604 Bytes
import streamlit as st
import pandas as pd
import numpy as np
st.title("Some Streamlit Demo, maybe")
st.sidebar.header("Input")
num_rows = st.sidebar.slider("Number of rows", min_value=10, max_value=100, value=20)
num_cols = st.sidebar.slider("Number of columns", min_value=2, max_value=10, value=3)
data = np.random.randn(num_rows, num_cols)
columns = [f"Column {i+1}" for i in range(num_cols)]
df = pd.DataFrame(data, columns=columns)
st.subheader("Generated Data Table")
st.dataframe(df)
st.subheader("Line Chart of the Data")
st.line_chart(df)
st.subheader("Statistics")
st.write(df.describe())