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

# ST_H3ToParent (Python)

> Return the parent of an H3 cell at the requested resolution.

Return the parent of an H3 cell at the requested resolution.

SQL reference: [`ST_H3ToParent`](/reference/wherobots-db/geometry-data/spatial-indexing/ST_H3ToParent)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_functions import ST_H3ToParent

ST_H3ToParent(
    cell: Union[ColumnOrName, int],
    resolution: Union[ColumnOrName, int],
) -> Column
```

## Parameters

<ParamField path="cell" type="Union[ColumnOrName, int]" required>
  H3 cell
</ParamField>

<ParamField path="resolution" type="Union[ColumnOrName, int]" required>
  resolution of the parent cell
</ParamField>

## Returns

<ResponseField name="return" type="Long">
  parent H3 cell
</ResponseField>


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