a = shape (2, 3)
Try
Spaces or commas between values · new line = new row · blank line = new 2-D layer (3-D array).
Function
axis
Starting Python… (first visit downloads ≈ 15 MB, then it is cached)
import numpy as np
a = np.array([[1, 2, 3],
[4, 5, 6]])
result = np.sum(a, axis=0)
resultOutput
Output appears here.