Using Python3 with or without NumPy, how can I convert
a =[[1,2],[0,1],[],[2,2],[],[2,13],[1,4],[6,1],[],[2,7]]
(with respect to its empty elements), to
b=[[[1, 2], [0, 1]], [[2, 2]], [[2, 13], [1, 4], [6, 1]], [[2, 7]]]
I appreciate any help on this.
Thanks