Using a value from a dataset in markdown

Hello it is possible to use st.markdown with values from dataset like we use with text?
Exemple:

with text:
st.markdown(’### The text’)

with value from dataset:
st.markdown(df.iloc[1][33] → will work, but how we chance de size using the ###

Thanks

1 Like

Hello,

You can use f-strings with markdown.

mean = 2.542
md_results = f"### The mean is **{mean:.2f}**."

st.markdown(md_results)
3 Likes

Thanks