How to remove the innermost level of nesting in a list of lists of varying lengths
问题 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 from: [[[1], [2], [3], [4], [5]], [[6], [7], [8]], [[11], [12]]] to this?: [[1, 2, 3, 4, 5], [6, 7, 8], [11, 12]] Also, the real lists I'm trying to do this for contain datetime objects rather than ints in the example. And the initial collection of lists will be of varying lengths. Alternatively, it would be fine if there