I've been scouring Google for an answer to this question, and have so far only seen similar results for different problems.
My list of lists of lists has the structure as follows (edit: arrays are numpy):
[array([[item]]), array([[item2]]), ...]
As you can see, it is not inconsistent formatting (it's a result of using numpy column vectors in a previous operation). I would like to flatten this to a simple list of values using a 1-line list comprehension. Similar problems include variable size sub- or sub-sub-lists, which I do not have to worry about.
The "solution" that would make the most sense to me:
[item for sublist for arr in list for item in sublist in arr]
But this doesn't work for syntax reasons, not to mention that I'm unsure if it goes deep enough.
I was wondering if this is even possible, and if anyone smarter than me could come up with a solution. Not time sensitive, we've settle for scatter plots...for now.
Cheers!