st.expander(label: str, expanded: bool = False)
A string to use as the header for the expander.
If True, initializes the expander in "expanded" state. Defaults to False (collapsed).
Still have questions?
Our forums are full of helpful information and Streamlit experts.