Method: Polars::Expr#sin

Defined in:
lib/polars/expr.rb

#sinExpr

Compute the element-wise value for the sine.

Examples:

df = Polars::DataFrame.new({"a" => [0.0]})
df.select(Polars.col("a").sin)
# =>
# shape: (1, 1)
# ┌─────┐
# │ a   │
# │ --- │
# │ f64 │
# ╞═════╡
# │ 0.0 │
# └─────┘

Returns:



6833
6834
6835
# File 'lib/polars/expr.rb', line 6833

def sin
  wrap_expr(_rbexpr.sin)
end