i have a numpy array like the following
[[ 1 2 3 4 ]
[ 5 6 7 8 ]
......... ]
So basically I want to create 4 (can be different) lists where
list_1 = [1,5...], list_2 = [2,6....] and so on.
What is the pythonic way to do this? Thanks
feedback
|
Given a numpy array
You first have to transpose it
and then convert to list
now you can index | |||||||||||
feedback
|
Given this
you can use slicing
| ||||
feedback
|
Dynamically :
| |||||||
feedback
|