Method: Polars::Expr#tan

Defined in:
lib/polars/expr.rb

#tanExpr

Compute the element-wise value for the tangent.

Examples:

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

Returns:

[View source]

6187
6188
6189
# File 'lib/polars/expr.rb', line 6187

def tan
  _from_rbexpr(_rbexpr.tan)
end