- DataFrame.head(n=5, npartitions=1, compute=True)¶
First n rows of the dataset
- nint, optional
The number of rows to return. Default is 5.
- npartitionsint, optional
Elements are only taken from the first
npartitions, with a default of 1. If there are fewer than
nrows in the first
npartitionsa warning will be raised and any found rows returned. Pass -1 to use all partitions.
- computebool, optional
Whether to compute the result, default is True.