edit-in-place

Rearrange columns of numpy 2D array

Rearrange columns of numpy 2D array Question: Is there a way to change the order of the columns in a numpy 2D array to a new and arbitrary order? For example, I have an array array([[10, 20, 30, 40, 50], [ 6, 7, 8, 9, 10]]) and I want to change it into, say array([[10, …

Total answers: 4