Display a dataframe as an interactive table.
Function signature

st.dataframe(data=None, width=None, height=None)

Parameters

data (pandas.DataFrame, pandas.Styler, numpy.ndarray, Iterable, dict,)

or None The data to display.

If 'data' is a pandas.Styler, it will be used to style its underyling DataFrame. Streamlit supports custom cell values and colors. (It does not support some of the more exotic pandas styling features, like bar charts, hovering, and captions.) Styler support is experimental!

width (int or None)

Desired width of the UI element expressed in pixels. If None, a default width based on the page width is used.

height (int or None)

Desired height of the UI element expressed in pixels. If None, a default height is used.

Was this page helpful?

editSuggest edits
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.