How can I add a column containing only "1" to the beginning of a second numpy array.
(如何在第二个numpy数组的开头添加仅包含“ 1”的列。)
X = np.array([1, 2], [3, 4], [5, 6])
I want to have X become
(我想让X变成)
[[1,1,2], [1,3,4],[1,5,6]]
ask by Moose translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…