I am trying to understand how to run the Aggregate functionality in the transform node so instead of having multiple aggregate nodes I can have the functionality in 1 transform node.
The input is
color:string, type:string, name:unicode, overdue:boolean
Red, primary, Peter, true
Green, primary, Peter, true
Blue, primary, Fred, False
Red, secondary, Jane, true
I would like the output to be
Color Red 2
Color Blue 1
Color Green 1
Type primary 3
Type secondary 1
Name Peter 2
Name Fred 1
Name Jane 1
Overdue true 3
Overdue false 1
I have for example tried group.count(fields["color"]) to get the color values grouped and output but it just outputs
1
2
3
4