How to create a crosstab using DashTable

(upload://kR2EZteGUEsbLisY09lHhNH0Dz4.png)

app.layout = dash_table.DataTable(
    id='table',
    columns=[
        {"name": ["", "Geslacht"], "id": "geslacht"},
        {"name": ['Testgroepvscontrole', i], "id": i} for i in df.columns
    ],
    data=df.to_dict('records'),
    merge_duplicate_headers=True,
    style_data_conditional=[{
        "if": {"column_id": "Testgroepvscontrole"},
        'backgroundColor': 'rgb(248, 117, 0)'
    }],
    style_header={
        'fontWeight': 'bold',
        'textAlign': 'center'
    }
)

I want to create cross-tab using DashTable, but I know that’s going to be tricky.

I am having an error with the columns attribute cause I want to do a multi-header with two for loops.
But, it doesn’t allow me. What do you guys recommend?