I am trying to replicate the border of a array:
A=[1,2],[3,4]
and want the result as
[1,1,1,2,2,2]
[1,1,1,2,2,2]
[1,1,1,2,2,2]
[3,3,3,4,4,4]
[3,3,3,4,4,4]
[3,3,3,4,4,4]
How do you do it in python? I am using
import numpy
(a,2,reflect') or wrap I am not getting this array