I have a 1d numpy ndarray with shape (1,2)
.
nd = array[1,0]
I want to convert it into a ndarray with shape (n,2)
such that it will look something like this;
nd_new = [
[1,0]
[1,0]
[1,0]
...
...
[1,0]
]
There are n
rows of [1,0]
.