suppose I have a list
a = [1,2,4,5]
I want to create another list b which clones a and adds it 3 times. So b is expected to be
b = [1,2,4,5,1,2,4,5,1,2,4,5]
How do I do this easily? Methods using pandas or numpy is also welcome.
suppose I have a list
a = [1,2,4,5]
I want to create another list b which clones a and adds it 3 times. So b is expected to be
b = [1,2,4,5,1,2,4,5,1,2,4,5]
How do I do this easily? Methods using pandas or numpy is also welcome.