List Headline Image
Updated by sriniwas pawar on Oct 09, 2019
 REPORT
7 items   1 followers   0 votes   0 views

Python Programming Numpy

Python Numpy Library List

Numpy Zeros np.zeros() in Python - CrazyGeeks

Numpy zeros np.zeros() function in python is used to get an array of given shape and type filled with zeros. You can pass three parameters inside function np.zeros shape, dtype and order. Numpy zeros function returns an array of the given shape.

How to Print Without Newline in Python - CrazyGeeks

Sometimes we wants to print string output without newline. Means printing a variable value or statement without going to newline. In Python for printing values print() function is used, which by default ends with newline.

numpy.where() in Python with Examples - CrazyGeeks

numpy.where() function in Python returns the indices of items in the input array when the given condition is satisfied.

numpy.linspace() in Python - CrazyGeeks

The numpy.linspace() function in Python returns evenly spaced numbers over the specified interval. This function is similar to The Numpy arange function but it uses the number instead of the step as an interval.

numpy.reshape() in Python - CrazyGeeks

By using numpy.reshape() function we can give new shape to the array without changing data. Sometimes we need to change only the shape of the array without changing data at that time reshape() function is very much useful.

numpy.sum() in Python - CrazyGeeks

numpy.sum() function in Python returns the sum of array elements along with the specified axis. So to get the sum of all element by rows or by columns numpy.sum() function is used.

numpy.append() in Python - CrazyGeeks

numpy.append() function in Python is used to add values to the end of the array and returns the new array.