Sahaj.blogs

Day page

1 Feb 2024

Study

NumPy · ndarray basics

The ndarray: creating arrays, shape, ndim, size, reshape, and why one NumPy array beats a list of floats.

  • An ndarray is one contiguous block of same-typed values plus metadata (shape, dtype, strides).
  • reshape returns a view when it can, so no data is copied.

Read the post →