Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[hail] table tail #7386
def tail(self, n) -> 'Table': """Subset table to last `n` rows. Examples -------- Subset to the last three rows: >>> table_result = table1.tail(3) >>> table_result.count() 3 Notes ----- The number of partitions in the new table is equal to the number of partitions containing the last `n` rows. Parameters ---------- n : int Number of rows to include. Returns ------- :class:`.Table` Table including the last `n` rows. """ return Table(TableTail(self._tir, n))
implement getTailPartitionCounts tentative: computeSubsetRange returns Option refactor head PCs/tail PCs into new module fix other uses of getHeadPartitionCounts fix: remove 'private'
can you add a python test that does something to the effect of:
danking left a comment
This looks awesome, a couple small comments.
I think there's an obvious extension here to