pick_fields¶
Description¶
Pick one or more fields from an object.
Return type¶
object
Domain¶
This is a scalar function (calculates a single output value for a single input row.)
Categories¶
Usage¶
pick_fields(column, key_1, key_2, ...)
Argument |
Type |
Optional |
Repeatable |
Restrictions |
---|---|---|---|---|
column |
object |
no |
no |
none |
key |
string |
no |
yes |
constant |
Examples¶
make_col smaller:pick_fields(obj, 'key1', 'key2')
Create a column ‘smaller’ based on column ‘obj’ only containing ‘key1’ and ‘key2’ if existing.