Standard kernels#
Each moruna.std function returns a StdKernel for moruna.run. None for an optional option delegates to the standard kernel’s default.
Function signature |
Result |
|---|---|
|
Cast columns to Arrow-compatible types. Failed conversions become null unless |
|
Rename old column names to new names. |
|
Keep columns in supplied order. |
|
Remove columns. |
|
Keep rows for which the expression is true. |
|
Replace nulls per column with a number, string or Boolean. |
|
Keep the first row per key across the run. |
|
Append a hex digest. |
|
Mask in place. Modes: |
|
One row per list element; null/empty lists give one null element. |
|
Append joined text; separator defaults to empty, output name to |
|
Truncate a date/timestamp to |
filter supports comparisons (==, !=, <, <=, >, >=), is_null(c), is_not_null(c), and, or, not, and parentheses. Put names with spaces in backquotes, for example `order amount` > 0. Invalid standard-kernel arguments raise a planning error at construction.
moruna.StdKernel#
Frozen result of a moruna.std function, with no public constructor. Its read-only attributes are name: str (for example "filter"), args: str (canonical JSON), and fingerprint: str (64 lowercase hexadecimal characters).