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

# <DataTable />

<Frame>
  <img src="https://mintcdn.com/queue-4c50ebb3/_HQi-05AKdEsS8di/assets/images/pages/data-table.jpg?fit=max&auto=format&n=_HQi-05AKdEsS8di&q=85&s=7d6f8b8fca46ae15181f8f6692234d78" width="1280" height="720" data-path="assets/images/pages/data-table.jpg" />
</Frame>

DataTable component displays the results of a Python function or SQL file execution in a table.

```tsx theme={"dark"}
<DataTable 
  loadData="aggregate_py" 
  hederKeys={['name', 'email', 'department']}
  height={300} 
/>
```

## Properties

<ParamField path="loadData" type="string" required>
  Name of the Python function or SQL file.
</ParamField>

<ParamField path="varialbes" type="{ [key: string]: any }">
  Variables to pass to the Python function or SQL file. Declare using the `defineState()` function.
</ParamField>

<ParamField path="headerKeys" type="string[]">
  Name of the columns to show. You can specify the order too.
</ParamField>

<ParamField path="height" type="number">
  Height of the component. Unit is px.
</ParamField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.