About 5,990 results
Open links in new tab
  1. numpy.argsort — NumPy v2.4 Manual

    numpy.argsort # numpy.argsort(a, axis=-1, kind=None, order=None, *, stable=None) [source] # Returns the indices that would sort an array. Perform an indirect sort along the given axis using the algorithm …

  2. numpy.argsort () in Python - GeeksforGeeks

    Jul 11, 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 elements in an array to be …

  3. python - Numpy argsort - what is it doing? - Stack Overflow

    The first argsort returns a permutation (which if applied to the data would sort it). When argsort is applied to (this or any) permutation, it returns the inverse permutation (that if the 2 permutations are applied …

  4. Understanding `argsort` in Python - CodeRivers

    Apr 8, 2025 · Understanding argsort in Python Introduction In the realm of data analysis and numerical computing with Python, the argsort function is a powerful tool. It plays a crucial role in sorting arrays …

  5. numpy.argsort — NumPy v1.11 Manual - SciPy.org

    May 29, 2016 · numpy.argsort ¶ numpy.argsort(a, axis=-1, kind='quicksort', order=None) [source] ¶ Returns the indices that would sort an array. Perform an indirect sort along the given axis using the …

  6. Numpy argsort () Function - Online Tutorials Library

    The numpy.argsort() function is used to return the indices that would sort an array. This function perform an indirect sort along the given axis using the algorithm specified by the kind parameter.

  7. NumPy argsort () - Programiz

    The argsort () method in NumPy sorts the array elements in ascending order and returns indices of the sorted elements. The argsort () method in NumPy sorts the array elements in ascending order and …

  8. Mastering NumPy's argsort: A Comprehensive Guide for Python Data ...

    Jun 9, 2025 · NumPy's argsort () function is a powerful yet often underappreciated tool in the Python data scientist's toolkit. This comprehensive guide will take you on a deep dive into the intricacies of …

  9. How To Use Np.argsort In Descending Order In Python

    May 13, 2025 · Learn two efficient ways to use NumPy's argsort function in descending order. Perfect for ranking data, creating leaderboards, and finding top values in Python arrays

  10. Python Numpy argsort () - Sort Array Indices | Vultr Docs

    Nov 11, 2024 · The argsort() function in NumPy is a powerful tool that returns the indices that would sort an array. This functionality is essential when you need to sort elements in one array and …