+ 2
# Sort along rows in descending order. temp =np.array([[11,22,33,44,55], [55,66,77,88,11],[88,99,10,11,22],[11,22,33,55,44],[11
# Sort along rows in descending order. temp =np.array([[11,22,33,44,55], [55,66,77,88,11],[88,99,10,11,22],[11,22,33,55,44],[11,44,33,22,55]]) arr2 = np.sort(temp)[::-1] print('Sorted Array in Descending Order: ', arr2) is this in rows? How to do in in columns?
1 Réponse
+ 2
#formula from google
there might have other (smarter and shorter) ways to solve this problem,but this is my try to help for you.
I hope this makes sense to you
https://code.sololearn.com/c1hDheJtNBr0/?ref=app