PivotTable
Interactive Pivot Table showing aggregated data in groups.
We provide three version of the pivot table
* PivotTableView: Takes already aggregated data as input
* PivotTable: Takes a dataframe as input and aggregates it for you.
* PivotTableCard: Similar to PivotTable but with a card layout, and configuration options.
Example
Titanic
PivotTableView
This component will take aggregates data as input
selected = {'x': [1, 3]}
count
pclass | 1 | 2 | 3 | ||||
---|---|---|---|---|---|---|---|
survived | false | true | false | true | false | true | Total |
sex | |||||||
female | 5 | 139 | 12 | 94 | 110 | 106 | 466 |
male | 118 | 61 | 146 | 25 | 418 | 75 | 843 |
Total | 123 | 200 | 158 | 119 | 528 | 181 | 1,309 |