+ 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?

3rd Oct 2021, 12:46 PM
Zhenis Otarbay
Zhenis Otarbay - avatar
1 Antwort
3rd Oct 2021, 1:02 PM
Myo Thuzar
Myo Thuzar - avatar