Merge cells with pandas multi-index table

Hey guys,

Im currently working on a school project and i am wondering if i can merge cells in the UI of my streamlit app.

Indeed, when I print my pandas multi index dataframe using st.table, this is what it print:
vc

I want to merge the 3 firsts rows โ€˜VCโ€™.
In HTML it refers to use rowspan = 3.
I donโ€™t know how to do it in streamlit

Thanks,

Hi @thes41d, welcome to the Streamlit community!

With a multi-index, itโ€™s hard for us to know what people intend (such as in your case). You can however concatenate those values yourself, so that you can get the display you want.

Best,
Randy

hi Randy i too have such issue, see the below screen shot, my header will start from row number 10, but I also need to show all the details from column 1 -9, similer to how we โ€œfreeze paneโ€ in excel sheet.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.