Table.from_objects
Table.from_objectsvaluefields
Group: Constants
Documentation
Converts an object or a Vector of object into a Table, by looking up the requested fields from each item.
Arguments
value
: The object or Vector of objects to convert to a table. If a Vector or Array, then each item is added as a row. Otherwise, treated as a single row.fields
: a Vector of Text representing the names of fields to look up. IfNothing
then all fields found are added.
Examples
Converts a set of objects into a table using the provided headers.
from Standard.Table import Table
import Standard.Examples
example_to_table =
json = Examples.simple_table_json
headers = Examples.simple_table_json_headers
Table.from_objects json headers