parameters: (data, indices, *, boundscheck=True, memory_pool=None)
return_statement: return call_function('take', [data, indices], options, memory_pool)
docstring: Select values (or records) from array- or table-like data given integer
      selection indices.
  
      The result will be of the same type(s) as the input, with elements taken
      from the input array (or record batch / table fields) at the given
      indices. If an index is null then the corresponding value in the output
      will be null.
  
      Parameters
      ----------
      data : Array, ChunkedArray, RecordBatch, or Table
      indices : Array, ChunkedArray
          Must be of integer type
      boundscheck : boolean, default True
          Whether to boundscheck the indices. If False and there is an out of
          bounds index, will likely cause the process to crash.
      memory_pool : MemoryPool, optional
          If not passed, will allocate memory from the default memory pool.
  
      Returns
      -------
      result : depends on inputs
  
      Examples
      --------
      >>> import pyarrow as pa
      >>> arr = pa.array(["a", "b", "c", None, "e", "f"])
      >>> indices = pa.array([0, None, 4, 3])
      >>> arr.take(indices)
      <pyarrow.lib.StringArray object at 0x7ffa4fc7d368>
      [
        "a",
        null,
        "e",
        null
      ]
docstring_summary: Select values (or records) from array- or table-like data given integer
      selection indices.
docstring_tokens: Select values ( or records ) from array - or table - like data given integer selection indices .
function: def take(data, indices, *, boundscheck=True, memory_pool=None):
      """
      Select values (or records) from array- or table-like data given integer
      selection indices.
  
      The result will be of the same type(s) as the input, with elements taken
      from the input array (or record batch / table fields) at the given
      indices. If an index is null then the corresponding value in the output
      will be null.
  
      Parameters
      ----------
      data : Array, ChunkedArray, RecordBatch, or Table
      indices : Array, ChunkedArray
          Must be of integer type
      boundscheck : boolean, default True
          Whether to boundscheck the indices. If False and there is an out of
          bounds index, will likely cause the process to crash.
      memory_pool : MemoryPool, optional
          If not passed, will allocate memory from the default memory pool.
  
      Returns
      -------
      result : depends on inputs
  
      Examples
      --------
      >>> import pyarrow as pa
      >>> arr = pa.array(["a", "b", "c", None, "e", "f"])
      >>> indices = pa.array([0, None, 4, 3])
      >>> arr.take(indices)
      <pyarrow.lib.StringArray object at 0x7ffa4fc7d368>
      [
        "a",
        null,
        "e",
        null
      ]
      """
      options = TakeOptions(boundscheck=boundscheck)
      return call_function('take', [data, indices], options, memory_pool)
function_tokens: def take ( data , indices , * , boundscheck = True , memory_pool = None ) : options = TakeOptions ( boundscheck = boundscheck ) return call_function ( 'take' , [ data , indices ] , options , memory_pool )