Hierarchical rows not rendering correctly in data tabulator

Hello,

Since Tabulator widget can render a hierarchical multi-index and aggregate over specific categories, I want to have it in our dashboards. However, hierarchical rows not rendering correctly in data tabulator.

from bokeh.sampledata.population import data as population_data
import pandas as pd
import panel as pn
pn.extension()

pop_df = population_data[population_data.Year == 2020].set_index([‘Location’, ‘AgeGrp’, ‘Sex’])[[‘Value’]]
df_widget = pn.widgets.Tabulator(value=pop_df, hierarchical=True, aggregators={‘Sex’: ‘sum’, ‘AgeGrp’: ‘sum’}, height=200)

df_widget

This is my output:

while it should be like:

Any idea?

Can it be related to the panel version you are using ?

I’m using panel==0.14.3. so should not be any issue related to the panel version.

1 Like