Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Python
21.3K+ articles
AI-ML-DS
4.8K+ articles
AI-ML-DS With Python
2.0K+ articles
Python-numpy
1.3K+ articles
Matrix
1.3K+ articles
Python numpy-Mathematical Function
223+ articles
Python numpy-arrayManipulation
200+ articles
Numpy
81+ articles
Python numpy-Statistics Functions
31+ articles
Python numpy-program
33 posts
Recent Articles
Popular Articles
How to calculate the element-wise absolute value of NumPy array?
Last Updated: 29 August 2020
Let's see the program for finding the element-wise absolute value of NumPy array. For doing this task we are using numpy.absolute() function of NumPy library. This mathema...
read more
Python
Python-numpy
Python numpy-program
Python numpy-Mathematical Function
Find the number of weekdays of a given month using NumPy
Last Updated: 26 November 2020
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 the first parameter and next month as the seco...
read more
Python
Python-numpy
Python numpy-program
Get the dates of Yesterday, Today, and Tomorrow using NumPy
Last Updated: 26 November 2020
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 the no-of-date with the help ...
read more
Python
Python-numpy
Python numpy-program
Display all the dates for a particular month using NumPy
Last Updated: 07 September 2021
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 particular month and the second parame...
read more
Python
Python-numpy
Python numpy-program
Compute pearson product-moment correlation coefficients of two given NumPy arrays
Last Updated: 02 September 2020
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 arra...
read more
Python
Python-numpy
Python numpy-program
Python numpy-Statistics Functions
How to find the maximum and minimum value in NumPy 1d-array?
Last Updated: 02 May 2022
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.numpy.amax(): T...
read more
Python
Python-numpy
Python numpy-program
Python numpy-arrayManipulation
NumPy: How to Calculate the Difference Between Neighboring Elements in Array
Last Updated: 09 February 2024
To calculate the difference between neighboring elements in an array using the NumPy library we use numpy.diff() method of NumPy library.It is used to find the n-th discre...
read more
Python
Python-numpy
Python numpy-program
Python numpy-Mathematical Function
Calculate the mean across dimension in a 2D NumPy array
Last Updated: 29 August 2020
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 the axis for finding mean.Syntax: numpy.mean(a...
read more
Python
Python-numpy
Python numpy-program
Python numpy-Statistics Functions
NumPy | Get the Powers of Array Values Element-Wise
Last Updated: 09 February 2024
To calculate the power of elements in an array we use the numpy.power() method of NumPy library.It raises the values of the first array to the powers in the second array.E...
read more
Python
Python-numpy
Python numpy-program
Python numpy-arrayManipulation
NumPy| How to get the unique elements of an Array
Last Updated: 09 February 2024
To find unique elements of an array we use the numpy.unique() method of the NumPy library in Python.It returns unique elements in a new sorted array.Example:Python3 ...
read more
Python
Python-numpy
Python numpy-program
Python numpy-arrayManipulation
Create an array which is the average of every consecutive subarray of given size using NumPy
Last Updated: 02 September 2020
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 of size k of a given numpy ...
read more
Python
Python-numpy
Python numpy-program
Python numpy-arrayManipulation
Python numpy-Statistics Functions
Find the number of occurrences of a sequence in a NumPy array
Last Updated: 05 September 2020
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 in a given NumPy array. This can be done e...
read more
Python
Python-numpy
Python numpy-program
Python numpy-arrayManipulation
How to randomly select rows of an array in Python with NumPy ?
Last Updated: 25 February 2021
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 methods by which we can select ran...
read more
Python
Picked
Python-numpy
Python numpy-program
Python numpy-Random
Slice a 2D Array in Python
Last Updated: 11 March 2024
We are given a 2D array matrix and we have to Slice this matrix 2D array and return the result. In this article, we will see how we can Slice the 2D array in Python.Exampl...
read more
Python
Python Programs
Picked
Python-numpy
Python numpy-program
How to Take Array Input in Python Using NumPy
Last Updated: 19 November 2024
NumPy is a powerful library in Python used for numerical computing. It provides an efficient way to work with arrays making operations on large datasets faster and easier....
read more
Python
Python Programs
Python numpy-program
Numpy
AI-ML-DS
1
2
3
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !