Data Structure
Java
Python
HTML
Interview Preparation
Interview Prep
Tutorials
Tracks
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.1K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.3K+ articles
School Learning
11.1K+ articles
JavaScript
9.9K+ articles
Java
9.3K+ articles
Misc
7.7K+ articles
Python-numpy
1.3K+ articles
Python numpy-Sorting Searching
18 posts
Recent Articles
Popular Articles
Find the nearest value and the index of NumPy Array
Last Updated: 23 July 2025
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
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
Finding the K Smallest Values of a NumPy Array
Last Updated: 27 September 2025
In NumPy, you may often need to find the k smallest values in an array. Instead of manually sorting and slicing, NumPy provides multiple efficient ways to achieve this.Usi...
read more
Python
Python-numpy
Python numpy-Sorting Searching
How to Get the Indices of the Sorted Array using NumPy in Python
Last Updated: 27 September 2025
The numpy.argsort() function is used to get indices that would sort a NumPy array. Instead of returning sorted array, it returns positions of the elements in order that so...
read more
Python
Python-numpy
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: 11 July 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
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.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.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.searchsorted() in Python
Last Updated: 27 September 2025
The numpy.searchsorted() function is used to find index positions where new values can be inserted into a sorted NumPy array while keeping the array order intact. It works...
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.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
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.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
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
1
2