filmov
tv
How to add or change values on 3D array in python ?

Показать описание
Code Example:
import numpy as np
print("Check dimension of array: ", arr3D.ndim)
print("Check shape of array: ", arr3D.shape)
print(arr3D)
print("Access array at index 0,0,0-1")
arr3D[0,0,:] = [10, 10]
print("\nResult: \n")
print(arr3D)
If you have any further question, please write it down on the comments below...
import numpy as np
print("Check dimension of array: ", arr3D.ndim)
print("Check shape of array: ", arr3D.shape)
print(arr3D)
print("Access array at index 0,0,0-1")
arr3D[0,0,:] = [10, 10]
print("\nResult: \n")
print(arr3D)
If you have any further question, please write it down on the comments below...