File size: 604 Bytes
0e9ff78
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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())