I have a Frame
as follows:
x = dt.Frame(k = [1, 1, 2],
v = [{'a':1, 'b':2}, {'a':3}, {'b':4}])
which looks like this:
k v
▪▪▪▪ ▪▪▪▪▪▪▪▪
1 {'a': 1, 'b': 2}
1 {'a': 3}
2 {'b': 4}
What I'm trying to do is to 1) group by k
, and 2) aggregate the count in the dictionary.
The desired output:
k v
▪▪▪▪ ▪▪▪▪▪▪▪▪
1 {'a': 4, 'b': 2}
2 {'b': 4}
Is it possible to achieve with the latest pydatatable
(v0.11)?