Class: Polars::MetaExpr
- Inherits:
-
Object
- Object
- Polars::MetaExpr
- Defined in:
- lib/polars/meta_expr.rb
Overview
Namespace for expressions on a meta level.
Instance Method Summary collapse
-
#!=(other) ⇒ Boolean
Not equal.
-
#==(other) ⇒ Boolean
Equal.
-
#output_name ⇒ String
Get the column name that this expression would produce.
-
#pop ⇒ Array
Pop the latest expression and return the input(s) of the popped expression.
-
#root_names ⇒ Array
Get a list with the root column name.
-
#undo_aliases ⇒ Expr
Undo any renaming operation like
alias
orkeep_name
.
Instance Method Details
#!=(other) ⇒ Boolean
Not equal.
22 23 24 |
# File 'lib/polars/meta_expr.rb', line 22 def !=(other) !(self == other) end |
#==(other) ⇒ Boolean
Equal.
15 16 17 |
# File 'lib/polars/meta_expr.rb', line 15 def ==(other) _rbexpr.(other._rbexpr) end |
#output_name ⇒ String
Get the column name that this expression would produce.
43 44 45 |
# File 'lib/polars/meta_expr.rb', line 43 def output_name _rbexpr. end |
#pop ⇒ Array
Pop the latest expression and return the input(s) of the popped expression.
29 30 31 |
# File 'lib/polars/meta_expr.rb', line 29 def pop _rbexpr..map { |e| Utils.wrap_expr(e) } end |
#root_names ⇒ Array
Get a list with the root column name.
36 37 38 |
# File 'lib/polars/meta_expr.rb', line 36 def root_names _rbexpr. end |
#undo_aliases ⇒ Expr
Undo any renaming operation like alias
or keep_name
.
50 51 52 |
# File 'lib/polars/meta_expr.rb', line 50 def undo_aliases Utils.wrap_expr(_rbexpr.) end |