4.8.10.1.4. statsmodels.tsa.varma_process.padone¶
-
statsmodels.tsa.varma_process.
padone
(x, front=0, back=0, axis=0, fillvalue=0)[source]¶ pad with zeros along one axis, currently only axis=0
can be used sequentially to pad several axis
Examples
>>> padone(np.ones((2,3)),1,3,axis=1) array([[ 0., 1., 1., 1., 0., 0., 0.], [ 0., 1., 1., 1., 0., 0., 0.]])
>>> padone(np.ones((2,3)),1,1, fillvalue=np.nan) array([[ NaN, NaN, NaN], [ 1., 1., 1.], [ 1., 1., 1.], [ NaN, NaN, NaN]])