Spaces:
Runtime error
Runtime error
Tyler Burns
commited on
Commit
•
0074cb1
1
Parent(s):
3742cdd
quick editing for app.py
Browse files- app.py +1 -0
- flycheck_app.py +17 -0
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
import plotly.express as px
|
|
|
3 |
|
4 |
# DONE Test streamlit
|
5 |
x = st.slider('Select a value')
|
|
|
1 |
import streamlit as st
|
2 |
import plotly.express as px
|
3 |
+
import pandas as pd
|
4 |
|
5 |
# DONE Test streamlit
|
6 |
x = st.slider('Select a value')
|
flycheck_app.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import plotly.express as px
|
3 |
+
import pandas as pd
|
4 |
+
|
5 |
+
# DONE Test streamlit
|
6 |
+
x = st.slider('Select a value')
|
7 |
+
st.write(x, 'squared is', x * x)
|
8 |
+
|
9 |
+
# Test plotly plotting
|
10 |
+
# Create a sample dataframe
|
11 |
+
df = pd.DataFrame({'x': [1, 2, 3, 4], 'y': [10, 20, 30, 40], 'z': ['A', 'B', 'C', 'D']})
|
12 |
+
|
13 |
+
# Plot a scatter plot using x, y columns
|
14 |
+
fig = px.scatter(df, x='x', y='y')
|
15 |
+
|
16 |
+
# Show it through streamlit
|
17 |
+
st.plotly_chart(fig, use_container_width=True)
|