I am trying to sort each column of a list using the numpy.argsort. However, I am getting an output that does not match the correct sorting. The name of the list that I am trying to sort is "CD". Below, I am providing the code that I am using so far and the incorrect output.
print(numpy.argsort(CD,axis=0))
The CD list the one below.
[[90, 85, 71, 48],
[28, 75, 2, 71],
[5, 93, 15, 56],
[59, 91, 29, 43],
[28, 24, 82, 35],
[13, 102, 77, 21],
[85, 102, 33, 64],
[80, 66, 64, 30],
[91, 78, 41, 1],
[77, 33, 30, 50]]
and the output is
[[2 4 1 8]
[5 9 2 5]
[1 7 3 7]
[4 1 9 4]
[3 8 6 3]
[9 0 8 0]
[7 3 7 9]
[6 2 0 2]
[0 5 5 6]
[8 6 4 1]]
I would really appreciate if you could give a hint of what possibly goes wrong.
EDIT
I want to get the index of the sorted columns. Not the actual number. Sorry for not clearing this out in the first place