As you can see in the image i got my multiselect in my sidebar.
How can I change the height and the width so that user doesn’t have to scroll vertically or horizontally.
#user can select specific year and show it's population.
selected_indices = st.sidebar.multiselect('Select the Specific year.', data.index)
selected_rows = data.loc[selected_indices]
st.sidebar.write(selected_rows)
The sidebar is probably not the best place to display wide tables. You could transpose the table and make the year selection be the columns and the attributes the rows. I’d personally show the table in the main page area.
Yeah I figured, but I changed the display. But I will definitely try what you told, maybe not use it on the app but to understand how the <style> is used in streamlit and use it in other ways.
Thanks.