> ## 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_NumInteriorRings (Python)

> Return the number of interior rings contained in a polygon geometry.

Return the number of interior rings contained in a polygon geometry.

SQL reference: [`ST_NumInteriorRings`](/reference/wherobots-db/geometry-data/accessors/ST_NumInteriorRings)

## Signature

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

ST_NumInteriorRings(geometry: ColumnOrName) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Polygon geometry column to return for.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Number of interior rings polygons contain as an integer column.
</ResponseField>


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