pyarrow.compute.cos_checked#

pyarrow.compute.cos_checked(x, /, *, memory_pool=None)#

Compute the cosine.

Infinite values raise an error; to return NaN instead, see “cos”.

Parameters:
xArray-like or scalar-like

Argument to compute function.

memory_poolpyarrow.MemoryPool, optional

If not passed, will allocate memory from the default memory pool.