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
DSA
21.3K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.2K+ articles
JavaScript
12.1K+ articles
School Learning
11.5K+ articles
Java
10.0K+ articles
Misc
8.5K+ articles
Python-numpy
1.3K+ articles
Python numpy-Sorting Searching
18 posts
Recent Articles
Popular Articles
numpy.nanargmin() in Python
Last Updated: 08 March 2024
The numpy.nanargmin() function returns indices of the min element of the array in a particular axis ignoring NaNs. The results cannot be trusted if a slice contains only N...
read more
Python
Python-numpy
Python numpy-Sorting Searching
numpy.nanargmax() in Python
Last Updated: 19 September 2023
The numpy.nanargmax() function returns indices of the max element of the array in a particular axis ignoring NaNs. The results cannot be trusted if a slice contains only N...
read more
Misc
Python
Python-numpy
Python numpy-Sorting Searching
Variations in different Sorting techniques in Python
Last Updated: 17 November 2020
These are all different types for sorting techniques that behave very differently. Let's study which technique works how and which one to use.Let 'a' be a numpy arraya.sor...
read more
Python
Python-numpy
Python numpy-Sorting Searching
numpy.sort() in Python
Last Updated: 29 November 2018
numpy.sort() : This function returns a sorted copy of an array. Parameters : arr : Array to be sorted. axis : Axis along which we need array to be started. order : Th...
read more
Python
Python-numpy
Python numpy-Sorting Searching
numpy.flatnonzero() in Python
Last Updated: 28 November 2018
numpy.flatnonzero()function is used to Compute indices that are non-zero in the flattened version of arr.Syntax : numpy.flatnonzero(arr)Parameters : arr : [array_like] ...
read more
Python
Python-numpy
Python numpy-Sorting Searching
numpy.searchsorted() in Python
Last Updated: 10 December 2018
numpy.searchsorted() function is used to find the indices into a sorted array arr such that, if elements are inserted before the indices, the order of arr would be still p...
read more
Python
Python-numpy
Python numpy-Sorting Searching
numpy.sort_complex() in Python
Last Updated: 24 December 2018
numpy.sort_complex() function is used to sort a complex array.It sorts the array by using the real part first, then the imaginary part.Syntax : numpy.sort_complex(arr)Pa...
read more
Python
Python-numpy
Python numpy-Sorting Searching
numpy.argwhere() in Python
Last Updated: 24 December 2018
numpy.argwhere() function is used to find the indices of array elements that are non-zero, grouped by element.Syntax : numpy.argwhere(arr)Parameters : arr : [array_lik...
read more
Python
Python-numpy
Python numpy-Sorting Searching
numpy.partition() in Python
Last Updated: 28 December 2018
numpy.partition() function is used to create a partitioned copy of input array with its elements rearranged in such a way that the value of the element in k-th position i...
read more
Python
Python numpy-Sorting Searching
numpy.argpartition() in Python
Last Updated: 28 December 2018
numpy.argpartition() function is used to create a indirect partitioned copy of input array with its elements rearranged in such a way that the value of the element in k-t...
read more
Python
Python numpy-Sorting Searching
numpy.argsort() in Python
Last Updated: 12 June 2025
numpy.argsort() is a function in NumPy that returns the indices that would sort an array. In other words, it gives you the indices that you would use to reorder the elemen...
read more
Python
Python numpy-Sorting Searching
Searching in a NumPy array
Last Updated: 01 October 2020
Numpy provides various methods for searching different kinds of numerical values, in this article, we will cover two important ones.numpy.where()numpy.searchsorted()1. num...
read more
Python
Python-numpy
Python numpy-Sorting Searching
How to get the indices of the sorted array using NumPy in Python?
Last Updated: 21 November 2022
We can get the indices of the sorted elements of a given array with the help of argsort() method. This function is used to perform an indirect sort along the given axis us...
read more
Python
Python-numpy
Python numpy-Sorting Searching
Finding the k smallest values of a NumPy array
Last Updated: 02 September 2020
In this article, let us see how to find the k number of the smallest values from a NumPy array.Examples:Input: [1,3,5,2,4,6] k = 3Output: [1,2,3] Method 1: Using np.sort()...
read more
Python
Python-numpy
Python numpy-Sorting Searching
Find the nearest value and the index of NumPy Array
Last Updated: 30 September 2022
In this article, let's discuss finding the nearest value and the index in an array with Numpy. We will make use of two of the functions provided by the NumPy library to ca...
read more
Python
Picked
Python-numpy
Python numpy-Sorting Searching
1
2
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 !