> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Table.head()

<span id="atoti.Table.head" />

> Table.head(<br />
>     *n*: [int](https://docs.python.org/3/library/functions.html#int) = `5`,<br />
> ) → [DataFrame](https://pandas.pydata.org/pandas-docs/version/3.0/reference/api/pandas.DataFrame.html#pandas.DataFrame)

Return at most *n* random rows of the table.

If the table has some [`keys`](./atoti.Table.keys#atoti.Table.keys), the returned DataFrame will be indexed by them.

### Parameters

<h4 id="atoti.Table.head.n">
  *n*
</h4>

> [int](https://docs.python.org/3/library/functions.html#int)
