Constructs a Table from columns.
Table.fromColumns(obj)
obj
An object mapping column names to array of rows. The keys are the column headers and the values are arrays that represent the column values.
If the object is an array, they headers are numbered.
rows
An array of arrays that represent the rows of the table.
A new Table object.
Table.fromColumns({
"Item": ["Bicycle", "Scooter"],
"Count": [5, 2]
})
| Item | Count |
|---|---|
| Bicycle | 5 |
| Scooter | 2 |