MCPcopy Create free account
hub / github.com/dask/dask / tail

Method tail

dask/dataframe/dask_expr/_collection.py:735–743  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

new_collectionFunction · 0.90
computeMethod · 0.45

Tested by

no test coverage detected