# dask.dataframe.Series.head

#### Series.head(n: [int](https://docs.python.org/3/builtins/functions.html#int) = 5, npartitions=1, compute: [bool](https://docs.python.org/3/builtins/functions.html#bool) = True)

First n rows of the dataset

* **Parameters:**
  **n**
  : The number of rows to return. Default is 5.

  **npartitions**
  : Elements are only taken from the first `npartitions`, with a
    default of 1. If there are fewer than `n` rows in the first
    `npartitions` a warning will be raised and any found rows
    returned. Pass -1 to use all partitions.

  **compute**
  : Whether to compute the result, default is True.

<!-- !! processed by numpydoc !! -->
