menu_book Course Curriculum (NumPy) expand_more
Array Creation
Shape & Indexing
Broadcasting & Vectorization
Aggregation & Statistics
Combining & Splitting
row and column broadcasting
Learn row and column broadcasting in NumPy with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.
12 min read
•
Intermediate
Advertisement
numpy-019.py
python
import numpy as np
matrix = np.arange(6).reshape(2,3)
row = np.array([10,20,30])
col = np.array([[100],[200]])
print(matrix + row + col)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content