Last n rows of the dataset Caveat, the only checks the last n rows of the last partition.
(self, n: int = 5, compute: bool = True)
| 733 | return out |
| 734 | |
| 735 | def tail(self, n: int = 5, compute: bool = True): |
| 736 | """Last n rows of the dataset |
| 737 | |
| 738 | Caveat, the only checks the last n rows of the last partition. |
| 739 | """ |
| 740 | out = new_collection(expr.Tail(self, n=n)) |
| 741 | if compute: |
| 742 | out = out.compute() |
| 743 | return out |
| 744 | |
| 745 | def copy(self, deep: bool = False): |
| 746 | """Make a copy of the dataframe |
nothing calls this directly
no test coverage detected