Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
menu_book Course Curriculum (Data Science Foundations) expand_more

Array shape

Learn Array shape in Data Science Foundations with a focused explanation, a topic-specific example, edge guidance, and a mastery check.

12 min read • Beginner
data-science-012.py
python
import numpy as np
a=np.arange(12).reshape(3,4)
print(a)
print("shape:",a.shape,"ndim:",a.ndim)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content