st.column_config.ListColumn
Configure a list column in st.dataframe or st.data_editor.
This is the default column type for list-like values. List columns are not editable at the moment. This command needs to be used in the column_config parameter of st.dataframe or st.data_editor.
| Function signature[source] | |
|---|---|
st.column_config.ListColumn(label=None, *, width=None, help=None) | |
| Parameters | |
label (str or None) | The label shown at the top of the column. If None (default), the column name is used. |
width ("small", "medium", "large", or None) | The display width of the column. Can be one of "small", "medium", or "large". If None (default), the column will be sized to fit the cell contents. |
help (str or None) | An optional tooltip that gets displayed when hovering over the column label. |
Examples
Python
Still have questions?
Our forums are full of helpful information and Streamlit experts.
