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

> Return the number of points contained in a geometry.

Return the number of points contained in a geometry.

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

## Signature

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

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

## Parameters

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

## Returns

<ResponseField name="return" type="Column">
  Number of points in a geometry column as an integer column.
</ResponseField>


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