nxcals.api.extraction.data.builders.DataFrame.tail
- DataFrame.tail(num: int) List[Row]
Returns the last
num
rows as alist
ofRow
.Running tail requires moving data into the application’s driver process, and doing so with a very large
num
can crash the driver process with OutOfMemoryError.New in version 3.0.0.
Examples
>>> df.tail(1) [Row(age=5, name='Bob')]