I have a 2d numpy array which varies in size from one value to other.
How can I generalize the size by filling in zeros if the input value has less dimension than required?
Exmaple:
Input list with numpy array dimension:
[(40, 173),
(40, 14),
(40, 56),
(40, 173)]
And I want to have all the arrays to be (40, 173), where if it is has lesser size, than filling rest with zeros.
np.zeros((40,173))array, and copy the input array to the desired slice.res[a:b, c:d] = input