whitphx's picture
whitphx HF staff
Copy https://github.com/whitphx/stlite/tree/main/packages/sharing-editor/public/samples/011_component_gallery
dd0ef30
raw history blame
No virus
337 Bytes
import streamlit as st
import pandas as pd
@st.experimental_memo
def load_data():
data_frame = pd.DataFrame(
{"first column": [1, 2, 3, 4], "second column": [10, 20, 30, 40]}
)
return data_frame
data_frame = load_data()
st.write("1 + 1 = ", 2)
st.write("Below is a DataFrame:", data_frame, "Above is a dataframe.")