i am looking for a way to duplicate value inside a numpy array in python according how many element it has inside (Len(-)). It looks like this:
a = [ [1]
[2]
[3]
]
after duplicating the values inside:
a = [ [1]
[2]
[3]
[1]
[2]
[3]
[1]
[2]
[3]
]
it is only an simple example. I need this to be done on a big data set.
np.tile, pay attention to the number of dimensions of your array, and the functions docs.