Is it possible to add text to the selection column of a st.dataframe? highlighted in the green box below:
For example, add text : multi-select or single select or any. Bonus, it can add icon or emoji.
import streamlit as st
import pandas as pd
import numpy as np
if "df" not in st.session_state:
st.session_state.df = pd.DataFrame(
np.random.randn(12, 5), columns=["a", "b", "c", "d", "e"]
)
event = st.dataframe(
st.session_state.df,
key="data",
on_select="rerun",
selection_mode=["multi-row", "multi-column"],
)
event.selection