NumPy Array Shape and Reshaping

Data Science with Python 7 min min read Updated: Mar 07, 2026 Beginner
NumPy Array Shape and Reshaping
Beginner Topic 6 of 10

Array Shape

python import numpy as np arr = np.array([[1,2,3],[4,5,6]]) print(arr.shape)

Reshaping Arrays

python arr = np.arange(6) print(arr.reshape(2,3))

Next Tutorial: NumPy Broadcasting

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators