Class: Polars::MetaExpr

Inherits:
Object
  • Object
show all
Defined in:
lib/polars/meta_expr.rb

Overview

Namespace for expressions on a meta level.

Instance Method Summary collapse

Instance Method Details

#!=(other) ⇒ Boolean

Not equal.

Returns:



22
23
24
# File 'lib/polars/meta_expr.rb', line 22

def !=(other)
  !(self == other)
end

#==(other) ⇒ Boolean

Equal.

Returns:



15
16
17
# File 'lib/polars/meta_expr.rb', line 15

def ==(other)
  _rbexpr.meta_eq(other._rbexpr)
end

#output_nameString

Get the column name that this expression would produce.

Returns:

  • (String)


43
44
45
# File 'lib/polars/meta_expr.rb', line 43

def output_name
  _rbexpr.meta_output_name
end

#popArray

Pop the latest expression and return the input(s) of the popped expression.

Returns:

  • (Array)


29
30
31
# File 'lib/polars/meta_expr.rb', line 29

def pop
  _rbexpr.meta_pop.map { |e| Utils.wrap_expr(e) }
end

#root_namesArray

Get a list with the root column name.

Returns:

  • (Array)


36
37
38
# File 'lib/polars/meta_expr.rb', line 36

def root_names
  _rbexpr.meta_roots
end

#undo_aliasesExpr

Undo any renaming operation like alias or keep_name.

Returns:



50
51
52
# File 'lib/polars/meta_expr.rb', line 50

def undo_aliases
  Utils.wrap_expr(_rbexpr.meta_undo_aliases)
end