Example #1
0
 def grep(self, pattern, flags=0):
     """
     >>> a=fromlist([["who","what"],["when","where"]])
     >>> a.grep("whe")
     CharArray(['when', 'where'])
     """
     return _gen.take(self, self.match(pattern, flags), axis=(0,))
Example #2
0
 def grep(self, pattern, flags=0):
     """
     >>> a=fromlist([["who","what"],["when","where"]])
     >>> a.grep("whe")
     CharArray(['when', 'where'])
     """
     return _gen.take(self, self.match(pattern, flags), axis=(0, ))
Example #3
0
def take(array, indices, outarr=None, axis=0, clipmode=_na.RAISE):
    a = asarray(array)
    return _gen.take(a, indices, outarr, axis, clipmode)
Example #4
0
def take(array, indices, outarr=None, axis=0, clipmode=_na.RAISE):
    a = asarray(array)
    return _gen.take(a, indices, outarr, axis, clipmode)