### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Array objects »
- The N-dimensional array (`ndarray`) »

# numpy.ndarray.shape

`ndarray.``shape`

  Tuple of array dimensions.

  Examples

      >>> x = np.array([1,2,3,4])
      >>> x.shape
      (4,)
      >>> y = np.zeros((4,5,6))
      >>> y.shape
      (4, 5, 6)
      >>> y.shape = (2, 5, 2, 3, 2)
      >>> y.shape
      (2, 5, 2, 3, 2)

### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Array objects »
- The N-dimensional array (`ndarray`) »