Hello,
So I have a table like
df = DataFrame(a= [1,1,2,2], b = [1,2,1,2], c = [1,2,3,4])
And I would like to create a table that, if I were to work in Excel, I could obtain with a pivot table with a for the Rows and b for the Columns. I assume uniqueness in the combinations {a,b} but in Excel you’d have to ask for the sum of c for the Values field.
The result would be as follows:
a | b=1 b=2
------------------
1 | 1 2
2 | 3 4
I’m trying to reproduce this with DataFrames(Meta) but I can’t figure out how to do that. Is there a built in way to do it or will I have to program it myself ?
For the rows it’s easy, using @by or groupby does it, but working with columns seems less supported.