Two students, three assignments. The bonus is one number per assignment: [5, 0, 10]. Print grades + bonus without a loop. The bonus lines up with the columns.
Data analysis labNumPy problems
Problem 21 of 50 · Broadcasting · Medium
Add a bonus to every row
Add a length-3 vector to each row of a 2 by 3 table.
Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.
1
Your solution
2