Print the table after subtracting each row’s own mean. mean(axis=1, keepdims=True) keeps a column of means so it broadcasts back across the columns.
Data analysis labNumPy problems
Problem 24 of 50 · Broadcasting · Medium
Center each row
Subtract each row mean from that row.
Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.
1
Your solution
2