-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
49 lines (38 loc) · 1.41 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# import streamlit as st
# import pandas as pd
# import numpy as np
# st.write("Hello World")
# st.text("This is some text.")
# game = pd.read_csv('2023-08-16 Eas-Uni.csv')
# print(game.head())
# chart_data = pd.DataFrame(np.random.randn(20, 3), columns=["a", "b", "c"])
# st.line_chart(chart_data)
# __________________________________________________________________
# import streamlit as st
# import time
# import numpy as np
# st.text("First Dinamic Line Chart. That I have no idea how to do it!")
# progress_bar = st.sidebar.progress(0)
# status_text = st.sidebar.empty()
# last_rows = np.random.randn(1, 1)
# chart = st.line_chart(last_rows)
# for i in range(1, 101):
# new_rows = last_rows[-1, :] + np.random.randn(5, 1).cumsum(axis=0)
# status_text.text("%i%% Complete" % i)
# chart.add_rows(new_rows)
# progress_bar.progress(i)
# last_rows = new_rows
# time.sleep(0.05)
# progress_bar.empty()
# # Streamlit widgets automatically run the script from top to bottom. Since
# # this button is not connected to any other logic, it just causes a plain
# # rerun.
# st.button("Re-run")
# ____________________________________________________________________
import streamlit as st
import numpy as np
import pandas as pd
dataframe = pd.DataFrame(
np.random.randn(10, 20),
columns=('col %d' % i for i in range(20)))
st.table(dataframe)