MCPcopy Create free account
hub / github.com/Lauriat/funct / argsort

Method argsort

funct/Array.py:713–715  ·  view source on GitHub ↗

Returns the indices that would sort this Array

(self, reverse=False)

Source from the content-addressed store, hash-verified

711 return self
712
713 def argsort(self, reverse=False):
714 """ Returns the indices that would sort this Array """
715 return self.enumerate.sortBy(lambda e: e[1], reverse=reverse)[:, 0]
716
717 def reverse(self, inplace=False):
718 """ Reverses this Array. """

Callers 1

testMethod · 0.95

Calls 1

sortByMethod · 0.80

Tested by 1

testMethod · 0.76