I have seen lots of example of lists into arrays, but no examples of lists in this format into arrays, which is strange because the list format I present is the standard go-to way of defining a graph, point-to-point mapping that you would find in any table, csv, database, etc. I tried everything here with no luck. Thanks for any ideas.
input= [[A, A, 0],
[A, B, 5],
[A, C, 3],
[B, A, 5],
[B, B, 0],
[B, C, 6],
[C, A, 3],
[C, B, 6],
[C, C, 0]]
desiredOutput= [[0, 5, 3],
[5, 0, 6],
[3, 6, 0]]

pandasis often the way you can handle such data.