Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add column array python


import numpy as np
N = 10
a = np.random.rand(N,N)
b = np.zeros((N,N+1))
b[:,:-1] = a

Source by codefantasy.org #
 
PREVIOUS NEXT
Tagged: #add #column #array #python
ADD COMMENT
Topic
Name
6+1 =