I have a table in DataFrame taken from excel:
col A ColB colC colD
123451 a w p
123452 b x q
123453 c y r
123454 a x
123454 a w p
And I want something like this using pandas.pivot_table:
colC p q r "unassigned" "total"
w 2 0 0 0 2
x 0 1 0 1 2
y 0 0 1 0 1