Skip to content

Tag Archives: Python numpy-program

 In this article, we will see two different methods on how to randomly select rows of an array in Python with NumPy. Let’s see different… Read More
In NumPy to display all the dates for a particular month, we can do it with the help of NumPy.arrange() pass the first parameter the… Read More
In NumPy we can find the number of weekdays in a given month with the help of busday_count() In this pass the given month is… Read More
In NumPy with the help of NumPy.datetime64(‘today’, ‘D’), we will find today date and if we want some date before today then we will subtract… Read More
The sequence is consisting of some elements in the form of a list and we have to find the number of occurrences of that sequence… Read More
NumPy is a powerful N-dimensional array object and its use in linear algebra, Fourier transform, and random number capabilities. It provides an array object much… Read More
Let’s see How to get the unique elements of an array using NumPy. So for finding unique elements from the array we are using numpy.unique()… Read More
Let us see how to convert a list of Celsius temperatures into Fahrenheit by converting them into NumPy array. The formula to convert Celcius to… Read More
Let’s see how to calculate the difference between neighboring elements in an array using NumPy library. So, We can find out the difference between neighboring… Read More
In NumPy, We can compute pearson product-moment correlation coefficients of two given arrays with the help of numpy.corrcoef() function. In this function, we will pass… Read More
In this article, we will see the program for creating an array of elements in which every element is the average of every consecutive subarrays… Read More
Let’s see the various ways to find the maximum and minimum value in NumPy 1d-array. Method 1: Using numpy.amax() and numpy.amin() functions of NumPy library.… Read More
We can find out the mean of each row and column of 2d array using numpy with the function np.mean(). Here we have to provide… Read More
Let’s see the program for how to get the n-largest values of an array using NumPy library. For getting n-largest values from a NumPy array… Read More
Let’s see how to calculate the difference between the maximum and the minimum values of a given NumPy array along the second axis. Here, the… Read More