
geeksforgeeks.org
https://www.geeksforgeeks.org/python/how-to-swap-c…
How to swap columns of a given NumPy array? - GeeksforGeeks
Swapping columns of a NumPy array means exchanging the positions of two specified columns across all rows. For example, if you have a 3x3 array with values like [ [0, 1, 2], [3, 4, 5], [6, 7, 9]] and you swap column 0 with column 2, the array becomes [ [2, 1, 0], [5, 4, 3], [9, 7, 6]].