Display Data with Streamlit

Learn to display data in various formats with Streamlit.

There are four ways that Streamlit displays data.

Metric

If we have just a single number to show as a key metric, we use the st.metric() method. There’s a delta option to show whether the metric increases or decreases.

To display a decrease, we use a negative value for delta, which is displayed in red. An increase is displayed in green:

Get hands-on with 1400+ tech skills courses.