Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import pandas as pd
|
3 |
+
import plotly.express as px
|
4 |
+
|
5 |
+
st.title("🎈 Streamlit Deployment Demo")
|
6 |
+
|
7 |
+
df = pd.read_csv("https://raw.githubusercontent.com/mwaskom/seaborn-data/master/penguins.csv")
|
8 |
+
|
9 |
+
col_name = st.selectbox("Column name", df.columns )
|
10 |
+
|
11 |
+
st.write("you selected " + col_name)
|
12 |
+
|
13 |
+
px_hist = px.histogram(df[[col_name]])
|
14 |
+
|
15 |
+
st.plotly_chart(px_hist)
|
16 |
+
|
17 |
+
st.dataframe(df)
|