I am trying to figure out a way to convert XYZ data that looks like this...
X Y Data
1 11 101
1 12 102
1 13 103
1 14 104
1 15 105
2 11 101
2 12 102
2 13 103
2 14 104
2 15 105
3 11 101
3 12 102
3 13 103
3 14 104
3 15 105
4 11 101
4 12 102
4 13 103
4 14 104
5 15 105
5 11 101
5 12 102
5 13 103
5 14 104
5 15 105
to a grid format looking like this...
NAN 1 2 3 4 5
11 101 102 103 104 105
12 101 102 103 104 105
13 101 102 103 104 105
14 101 102 103 104 105
15 101 102 103 104 105
I have initially tried to use numpy module which feels like the right path for array manipulation, but I can't seem to figure out the solution. Any thoughts or help to point me in the right direction is appreciated.