DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
add a new column to numpy array
import numpy as np N = 10 a = np.random.rand(N,N) b = np.zeros((N,N+1)) b[:,:-1] = a
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#add
#column
#numpy
#array
ADD COMMENT
Topic
COMMENT
Name
9+3 =
Submit