llms.txt: machine-readable documentation index. Markdown version of this page is also available.

DataFrame Help

tail

Returns a DataFrame with the last five rows.

API reference: tail

This is equivalent to calling takeLast with the same numRows argument. By default, numRows = 5.

df.tail(numRows: Int = 5)

Related operations: head, takeLast, take.

Examples

df

Default last 5 rows:

df.tail()

Specify number of rows:

df.tail(numRows = 2)
02 November 2026