Method: Polars::Functions#nth
- Defined in:
- lib/polars/functions/lazy.rb
permalink #nth(*indices) ⇒ Expr
Get the nth column(s) of the context.
568 569 570 571 572 573 574 |
# File 'lib/polars/functions/lazy.rb', line 568 def nth(*indices) if indices.length == 1 && indices[0].is_a?(Array) indices = indices[0] end Utils.wrap_expr(Plr.index_cols(indices)) end |