I have array as list item inside a list that I want to convert into list later on. Code below is a result from looping over a and b.
Output
>>>
[[2, 0], [0, 0]]
[array([5, 7]), array([5, 5])]
[[1, 0, 2], [0, 0, 0], [1], [1]]
[array([5, 6, 4]), array([6, 6, 6]), array([3]), array([3])]
[[1, 0], [1, 0]]
[array([4, 5]), array([4, 5])]
>>> type(a)
<type 'list'>
>>> type(b)
<type 'list'>
I use tolist() function to convert them into list but there is one line that is not successful:
Output
>>>
[[2, 0], [0, 0]]
[[5, 7], [5, 5]]
[[1, 0, 2], [0, 0, 0], [1], [1]]
[array([5, 6, 4]), array([6, 6, 6]), array([3]), array([3])]
[[1, 0], [1, 0]]
[[4, 5], [4, 5]]
Can anyone help me?