Contact: aviboots(AT)netvision.net.il
39,859 questions
51,780 answers
573 users
import numpy as np arr = np.array([[1,2,3],[4,5,6]]) result = np.dstack((arr, arr, arr)) print(result) ''' run: [[[1 1 1] [2 2 2] [3 3 3]] [[4 4 4] [5 5 5] [6 6 6]]] '''