I have a list that takes the shape
[[1,1],[2,2,2]],[[3,3],[4,4],[5,5,5]]
which when turned into a numpy array becomes
[[1 1],[2 2 2]],
[[3 3 3],[4 4],[5 5 5]]
so to be clear, i have a list made up of 2 lists and each of those lists are made up of lists
i want to put it in the form
[[1,1],[2,2,2],[3,3],[4,4],[5,5,5]]
or
[[1,1],
[2 2 2],
[3 3],
[4 4],
[5 5 5]]
flatten does not work because it just gives me a list of every component, but i want to keep the lists with the same components together so that i end up with a list of lists. The would be lists of different sizes as well so i don't think the reshape function works either.
The other problem is that in the example i gave the lists are made up of the same number, but in my actual code they are different numbers, so i can't simply tell it to put all of a certain number into each list.
I hope i am clear, if not, i will try and clarify