Multiheader (Multiindex) columns in ui.table #3964
-
Greetings everyone, I have been looking to buld something like this with nicegui, but then I found this errormessage in the sourcecode: nicegui/nicegui/elements/table.py Line 124 in 7a3cfc2 Are Multiheaders supported? Is there any way/workaround to replicate the codepenexample from above? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @GeorgiT-HI, As the exception says, MultiIndex columns are not supported. And as stated in the next lines, "You can convert them to strings using something like |
Beta Was this translation helpful? Give feedback.
Hi @GeorgiT-HI,
As the exception says, MultiIndex columns are not supported. And as stated in the next lines, "You can convert them to strings using something like
df.columns = ["_".join(col) for col in df.columns.values]
".See #2384 (comment) for more information about the underlying problem with such columns.