I am trying to sort a numpy array using this very simple code:
print np.array([2,0,8,4,1]).sort()
However, I am getting the result:
None
Can someone tell me what's going on here?
|
The array probably gets sorted in-place, like Python's
|
|||||||||
|