streamlit-component-gallery / pages /data.dataframe1.py
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
271 Bytes
import streamlit as st
import pandas as pd
import numpy as np
@st.experimental_memo
def load_data():
df = pd.DataFrame(np.random.randn(10, 20), columns=("col %d" % i for i in range(20)))
return df
df = load_data()
st.dataframe(df.style.highlight_max(axis=0))