+ 2
Reverse both along rows and columns.
Reverse both along rows and columns. arr = 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]]) reversed_arr = arr[::-1] print(reversed_arr) this what I have written along rows? How to reverse along columns?
1 ответ
+ 2
for details explanation,read here
https://www.geeksforgeeks.org/how-to-reverse-column-order-in-a-matrix-with-JUMP_LINK__&&__python__&&__JUMP_LINK/
not sure this is what you want or not
https://code.sololearn.com/cnihAC1A8425/?ref=app