Skip to main content

Define Columns

Columns help us organize two-dimensional data.

Create columns by placing elements inside square brackets ([]):

A column can contain numbers (with or without units):

Dates:

Text strings:

Or even booleans:

A column must be coherent

Columns cannot contain different types of elements. Here are some examples of non-valid columns:

Units on columns must be consistent:

Creating columns from sequences

Create a column by specifying a sequence:

Column Operations

You can apply an arithmetic operator to columns (+, -, *, /, etc.):

If you have two columns, you can operate on each corresponding item like this:

This only works if both columns have the same number of elements.

You can also operate on columns with dates:

Or strings:

Or even using the not boolean operator: