Given a categorical column and multiple numeric columns, this component creates a percentage stacked bar chart. Data frame is grouped on categorical column and group-wise mean of values under each numeric individual column are taken. Here is an example with 't' as target:
data:
t c1 c2
a 10 20
a 20 30
b 5 10
b 15 20
Group-wise mean of data:
t c1 c2
a 15 25
b 10 15
Data is then normalized row-wise to get percentages, as:
t c1 c2
a 0.375 0.625
b 0.4 0.6
For each value of the target column, a stacked bar chart is plotted. The component uses python 'base' environment.
- Type: TableInputInput your dataframe here