Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| import pandas as pd | |
| st.set_page_config(page_title="Hello Streamlit", layout="wide") | |
| st.title("Hello, Streamlit ") | |
| st.write("Turn notebooks into shareable apps in minutes.") | |
| # A tiny dataset | |
| sales = pd.DataFrame({ | |
| "month": ["Jan","Feb","Mar","Apr"], | |
| "revenue": [120, 150, 130, 180] | |
| }) | |
| # Widget + computed view | |
| threshold = st.slider("Highlight revenue above", 100, 200, 140) | |
| st.bar_chart(sales.set_index("month")) | |
| st.write("Rows above threshold:") | |
| st.dataframe(sales[sales.revenue > threshold]) | |