File size: 389 Bytes
54d539c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import streamlit as st 
import pandas as pd 
import plotly.express as px 

st.title("🎈 Streamlit Deployment Demo")

df = pd.read_csv("https://raw.githubusercontent.com/mwaskom/seaborn-data/master/penguins.csv")

col_name = st.selectbox("Column name", df.columns ) 

st.write("you selected " + col_name)

px_hist = px.histogram(df[[col_name]])

st.plotly_chart(px_hist)

st.dataframe(df)