SchoolWhool
Quizzes and saved progress, freeSign in freeSign in

Tools 1.2Lesson outlineLesson 2 of 7 in Module 1

Shape, dtype and Reshaping

Read any array's shape and dtype, and reshape without copying.

Free sample. Everything in this module opens with a free account.Video in production.

Lesson outline: Shape, dtype and Reshaping

In this lesson7 parts

  1. 01Loading an array, and reading its shape
  2. 02Reshaping to a grid: shape, ndim, size and len
  3. 03Reshape changes the reading, not the buffer
  4. 04dtype, itemsize and nbytes
  5. 05Fixed width: int8, astype and silent wraparound
  6. 06Creating arrays without data: zeros, ones, arange and linspace
  7. 07Recap and your challenge