pyarrow.compute.cos

pyarrow.compute.cos(x, *, memory_pool=None)

Compute the cosine of the elements argument-wise.

Integer arguments return double values. This function returns NaN on values outside its domain. To raise an error instead, see “cos_checked”.

Parameters
  • x (Array-like or scalar-like) – Argument to compute function

  • memory_pool (pyarrow.MemoryPool, optional) – If not passed, will allocate memory from the default memory pool.