> ## 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.

# GeoSeries.from_xy

> Alternate constructor to create a :class:~geopandas.GeoSeries of Point geometries from lists or arrays of x, y(, z) coordinates

Alternate constructor to create a `GeoSeries` of Point
geometries from lists or arrays of x, y(, z) coordinates

In case of geographic coordinates, it is assumed that longitude is captured
by `x` coordinates and latitude by `y`.

## Signature

```python theme={"system"}
GeoSeries.from_xy(x, y, z=None, index=None, crs=None, **kwargs) -> GeoSeries
```

## Parameters

<ParamField path="x" type="iterable" required />

<ParamField path="y" type="iterable" required />

<ParamField path="z" type="iterable" default="None" />

<ParamField path="index" type="array - like or Index" default="None">
  The index for the GeoSeries. If not given and all coordinate inputs
  are Series with an equal index, that index is used.
</ParamField>

<ParamField path="crs" type="value" default="None">
  Coordinate Reference System of the geometry objects. Can be anything
  accepted by
  `pyproj.CRS.from_user_input() <pyproj.crs.CRS.from_user_input>`,
  such as an authority string (eg "EPSG:4326") or a WKT string.
</ParamField>

<ParamField path="kwargs">
  Additional arguments passed to the Series constructor,
  e.g. `name`.
</ParamField>

## Returns

<ResponseField name="return" type="GeoSeries" />

**See also**

* `GeoSeries.from_wkt`
* `points_from_xy`

## Examples

```python theme={"system"}
>>> x = [2.5, 5, -3.0]
>>> y = [0.5, 1, 1.5]
>>> s = GeoSeries.from_xy(x, y, crs="EPSG:4326")
>>> s
0    POINT (2.5 0.5)
1    POINT (5 1)
2    POINT (-3 1.5)
dtype: geometry
```


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