tail

The tail method returns a table with a specific number of rows from the end of the source table.

Syntax

Parameters

ParameterTypeDescription
num_rowsint

The number of rows to return.

Returns

A new table with a specific number of rows from the end of the source table.

Examples

The following example filters the table to the last two rows.

The following example uses tail on a blink table. Note that tail treats the blink table like an append-only table, showing the five rows that were most recently added to the table, regardless of what update cycle they are a part of.

The above source and result tables