Method: Polars::Expr#cast
- Defined in:
- lib/polars/expr.rb
#cast(dtype, strict: true) ⇒ Expr
Cast between data types.
1274 1275 1276 1277 |
# File 'lib/polars/expr.rb', line 1274 def cast(dtype, strict: true) dtype = Utils.rb_type_to_dtype(dtype) _from_rbexpr(_rbexpr.cast(dtype, strict)) end |