How can I convert an array of shape (22,1) into an array of (24,1)? How can I fill those missing values?
i.e My array with shape (22,1).
array([[365.],
[173.],
[389.],
[173.],
[342.],
[173.],
[294.],
[165.],
[246.],
[142.],
[254.],
[142.],
[357.],
[260.],
[389.],
[339.],
[389.],
[339.],
[381.],
[410.],
[381.],
[410.]])
How can I fill the two missing numbers with the average? Furthermore, if I have an array of shape (19,1) would I be able to fill until shape (24,1)?