You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document parse_array primitive and CSV reduce workflow
- add parse_array to primitives reference and examples\n- document parse_array->reduce chain for serialized arrays\n- include delimiter examples for pipe and newline
Copy file name to clipboardExpand all lines: README.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,7 @@ All settings are provided in the operation dict for rule serialization.
135
135
|`normalize_boolean`| Normalize truthy/falsy values to booleans. |`truthy` (list, optional; defaults below)<br>`falsy` (list, optional; defaults below)<br>`strict` (bool, default `true`)<br>`default` (optional; used when `strict=false`) |
136
136
|`normalize_text`| Apply a single text normalization. |`normalization` (`strip`, `lower`, `upper`, `remove_accents`, `remove_punctuation`, `remove_special_characters`) |
137
137
|`offset`| Add an offset to numeric values. |`offset` (number) |
138
+
|`parse_array`| Parse array-like values into a list for downstream operations. |`format` (`json` default, `delimiter`)<br>`delimiter` (string; used for `delimiter` format, default `|`, supports `\\n` for newline)<br>`item_type` (`auto`, `string`, `integer`, `float`, `boolean`)<br>`strict` (bool, default `true`)<br>`default` (optional; used when `strict=false`)<br>`allow_singleton` (bool, default `false`) |
138
139
|`reduce`| Reduce a list of values to one value. |`reduction` (`any`, `none`, `all`, `one-hot`, `sum`); expects a list/tuple input; one-hot returns index or None |
139
140
|`round`| Round numeric values to a given precision. |`precision` (int, >=0); uses Python `round` semantics |
140
141
|`scale`| Multiply numeric values by a factor. |`scaling_factor` (number) |
@@ -162,6 +163,7 @@ Each operation is represented by a JSON-friendly dict. Examples:
0 commit comments