Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

NumPy multidimensional arrays are easy! ๐ŸงŠ

Video information, playback and saved actions.

NumPy multidimensional arrays are easy! ๐ŸงŠ

Description: #coding #python #numpy

import numpy as np

array = np.array([[['A', 'B', 'C'], ['D', 'E', 'F'], ['G', 'H', 'I']],
[['J', 'K', 'L'], ['M', 'N', 'O'], ['P', 'Q', 'R']],
[['S', 'T', 'U'], ['V', 'W', 'X'], ['Y', 'Z', ' ']]])

print(array.ndim) #returns number of dimensions
print(array.shape) #returns a tuple of integers that represent the shape

word = array[0, 0, 0] + array[2, 0, 0] + array[2, 0, 0]

print(word)ย Close description
ย ย ย ย ย ย 
Videos related to "NumPy multidimensional arrays are easy! ๐ŸงŠ"