I have a list of lists, each sub-list contain exactly 2 floats:
my_list = [[0, 1], [0, 1], [0, 1]]
Is there a one liner slice operation; so as to not have a for loop?
Desired Output:
> [[1], [1], [1]]
Then, I would like to merge these sub-lists as elements into one list. Outputting, as dtype list:
> [1, 1, 1]
Failed attempt:
d_[:][1]
> [[0, 1]]