I have a list of (x,y,z) tuples in a dataframe A. How can I produce a dataframe B which represents the underlying matrix of A, using the existing values of x and y as index and columns values, respectively?
Example:
A:
x y z
1 1 1
1 2 10
2 1 100
B:
1 2
1 1 10
2 100 NaN