I have a list like this:
lista=[[1,2,3],
[1,2,3,4,5,6],
[1,2],]
I want to get numpy.array like this, (the shorter list element be expand to the max legnth, then set tail values as zeros):
array([[1,2,3,0,0,0],
[1,2,3,4,5,6],
[1,2,0,0,0,0],])
how to do? where there are some built-in methods in numpy?