I have a matrix like:
[[col1,col2,col3,col4,col5],
[4,1,3,6,2],
[9,4,1,3,6]]
I want to reorder the matrix by columns arbitrarily like:
[[col3,col1,col5,col4,col2],
[3,4,2,6,1],
[1,9,6,3,4]]
I know that if that would be one row, I could create an order list like order_list = [2,0,4,3,1] and then use list comprehension ordered_list = [old_list[i] for i in order_list] but here I couldn't come up with a way to create a nested comprehension where I do this operation for each row.