Method: Polars::Functions#first
- Defined in:
- lib/polars/functions/lazy.rb
#first(*columns) ⇒ Expr
Get the first value.
485 486 487 488 489 490 491 |
# File 'lib/polars/functions/lazy.rb', line 485 def first(*columns) if columns.empty? return cs.first.as_expr end col(*columns).first end |