I have a data frame of the below format.
variable count
a,x 20
a 100
a,y 40
I would like to get a matrix similar to correlational matrix but not correlational data. Required matrix is of the below format. This matrix clearly helps to distinguish the count of each variable. Is it possible to perform such transformations using pandas.
a 40 20 100
x 0 0 20
y 0 0 40
y x a