Shape
Applies to: python
An array's shape is the length of each dimension, such as rows and columns for a matrix.
import numpy as np
a = np.zeros((3, 4))
a.shape # (3, 4)
See also: numpy-array, axis
Applies to: python
An array's shape is the length of each dimension, such as rows and columns for a matrix.
import numpy as np
a = np.zeros((3, 4))
a.shape # (3, 4)
See also: numpy-array, axis