st_df_demo / app.py
Amrrs's picture
Create app.py
54d539c
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)