menu_book Course Curriculum (NumPy) expand_more
Array Creation
Shape & Indexing
Broadcasting & Vectorization
Aggregation & Statistics
Combining & Splitting
reshape()
Learn reshape() in NumPy with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.
12 min read
•
Beginner
numpy-010.py
python
import numpy as np
flat = np.arange(12)
grid = flat.reshape(3, 4)
print(grid)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content