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

> Return the number of points in a LineString :param geometry: Geometry column to get number of points from.

Return the number of points in a LineString

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

## Signature

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

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

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry column to get number of points from.
</ParamField>

## Returns

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


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