Understanding Operations

Report a typo

Let's say we have the following array:

array = np.array([[34, 0, 5], [77, 1, 4], [89, 44, 3]])

and want to perform some operations on it. Match each code snippet with its result.

Match the items from left and right columns
array.prod(axis=1)
array.sum(axis=0)
array.mean(axis=1)
array.min(axis=0)
[34 0 3]
[ 0 308 11748]
[13. 27.33333333 45.33333333]
[200 45 12]
___

Create a free account to access the full topic