Spaces:
Runtime error
Runtime error
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) |