Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python 3d array

Explaination:
	import numpy as np

	np.zeros(the amount of arrays, amount of rows, the amount of colums)
---------------------------------------------------------------------
Usage:
	array_city = np.zeros((2, 3, 4))
	print(array_city)
---------------------------------------------------------------------
Results:
[
    [
      [0. 0. 0. 0.],
  	  [0. 0. 0. 0.],
      [0. 0. 0. 0.],
    ],
      
    [
      [0. 0. 0. 0.],
      [0. 0. 0. 0.],
      [0. 0. 0. 0.],
    ]
]
 
PREVIOUS NEXT
Tagged: #python #array
ADD COMMENT
Topic
Name
8+1 =