hii experts i have a 1d numpy array and i want to repeat it 3 times vertically,
my_input_array = [-1.02295637 -0.60583836 -0.42240581 -0.78376377 -0.85821456]
i tried the below code
import numpy as np
x=np.loadtxt(my_input_array)
x.concatenate()
however i get error...in this way...hope i will get some solution.Thanks.
my expected output should be as below
-1.02295637
-0.60583836
-0.42240581
-0.78376377
-0.85821456
-1.02295637
-0.60583836
-0.42240581
-0.78376377
-0.85821456
-1.02295637
-0.60583836
-0.42240581
-0.78376377
-0.85821456
x.concatenate()- where did you get the idea to do this? It's not a documented method, is it? You'll have a lot of problems if you make wild guesses without checking documentation. That said, you might findnp.tileto be useful - look it up.