The sum() function in NumPy package of Python is used to calculate the total of all elements, the total of each row, and the total of each column of a given array. If the axis = None then it will return a scalar value. It returns an array, it contains the sum of elements of the input array along with the specified axis.
0 Comments
Leave a Reply. |