Skip to content

Instantly share code, notes, and snippets.

@talaatmagdyx
Created December 25, 2024 00:44
Show Gist options
  • Select an option

  • Save talaatmagdyx/aa8145471f7edf11cd530d80b5d4d3d8 to your computer and use it in GitHub Desktop.

Select an option

Save talaatmagdyx/aa8145471f7edf11cd530d80b5d4d3d8 to your computer and use it in GitHub Desktop.
import streamlit as st
import pandas as pd
import numpy as np
# Add a checkbox
if st.checkbox("Show a random data table"):
data = pd.DataFrame(
np.random.randn(10, 5),
columns=["A", "B", "C", "D", "E"]
)
st.write(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment