novem-code / novem-python

python command-line interface for interacting with the novem.no data visualisation platform
Other
2 stars 3 forks source link

Add support for python dataframe multi-index #26

Closed sondove closed 1 month ago

sondove commented 1 month ago

When creating tables with novem you sometimes want multiple consecutive cells to be merged similar to how pandas presents the data when printed.

Whilst novem has support for cell merging in table_plot.cell.merge constructing the grammar can be a bit involved.

The novem table utility library should offer an index_merge utility or similar that takes a multi index as input and produces a valid novem merge instruction as output.