I\'m trying to remove the innermost nesting in a list of lists of single element length lists. Do you know a relatively easy way (converting to NumPy arrays is fine) to get
l = [ [ [1],[2],[3],[4],[5] ],
[ [6],[7],[8], [None],[None]] ,
[ [11],[12],[None],[None],[None]] ]
l = [ [x[0] for x in s if x[0] is not None] for s in l]