# tail
Discover `tail` operation in Kotlin Dataframe.
Discover `tail` operation in Kotlin Dataframe.
Discover `tail` operation in Kotlin Dataframe.
Returns a [`DataFrame`](DataFrame.md) with the last five rows.
This is equivalent to calling [`takeLast`](sliceRows.md#takelast) with the same `numRows` argument.
By default, `numRows = 5`.
```kotlin
df.tail(numRows: Int = 5)
```
**Related operations**: [`head`](head.md), [`takeLast`](sliceRows.md#takelast), [`take`](sliceRows.md#take).
### Examples
```kotlin
df
```
Default last 5 rows:
```kotlin
df.tail()
```
Specify number of rows:
```kotlin
df.tail(numRows = 2)
```