mathUnary
The unary mathematical transforms (sqrt, cbrt, exp, log, log2, log10, log1p, expm1, sin, cos, tan, asin, acos, atan) over a numeric Series: FLOAT32 and FLOAT64 keep their kind, integer kinds promote to FLOAT64. Exceptional values follow IEEE and never throw (sqrt(-1) = NaN, log(0) = -inf); FLOAT32 results are computed in double and rounded once; nulls propagate. Elementwise and chunk-parallel (bitwise-identical to the serial walk at every thread count).
Parameters
fn | the std.math function name |
s | the input Series |
Returns
the transformed Series.
Throws
DataFrameException for non-numeric kinds.