Python Programming - Arrays - Discussion
Discussion Forum : Arrays - General Questions (Q.No. 83)
83.
Given a NumPy array
arr = np.array([[1, 2], [3, 4]]), what does arr.sum(axis=1) calculate?
Answer: Option
Explanation:
The
sum() function with axis=1 calculates the sum of elements in each row.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers