arr = np.array([[1,2],
[2,3],
[5,6]])
Is there any numpy function to clone the above 2d array into 3d array as shown below? If not, how to do it with multiple steps?
bb = np.?????(arr, 3)
>> print(bb)
[[[1,2],
[2,3],
[5,6]],
[[1,2],
[2,3],
[5,6]],
[[1,2],
[2,3],
[5,6]]]