How do I supplemented by a numpy array of zeros?
arr = np.array([1,10])
if len(arr) < size:
# supplemented array of zeros to the size
For example size = 5;
if array = [1,2,3].
output array = [1,2,3,0,0]
Should I call fill or make a new array like arr + [0]*(size-len)?
Which is faster?