Skip to content

datatable: ag grid - how to perform group by on my data table #649

Answered by wang0618
sumitmehta1025 asked this question in Q&A
Discussion options

You must be logged in to vote

You can use column_args param in put_datatable() to provide the columnDefs to ag-grid. For your case, you can use

put_datatable(..., column_args={
    "country": { "hide": True, "rowGroupIndex": 1 },
    "year": { "hide": True, "rowGroupIndex": 0},
})

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@wang0618
Comment options

@sumitmehta1025
Comment options

@wang0618
Comment options

@sumitmehta1025
Comment options

Answer selected by sumitmehta1025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants