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

> Return a GeoSeries with skewed geometries.

Return a `GeoSeries` with skewed geometries.

Each geometry is sheared independently along its x and y dimensions.
Negative angles shear in the opposite direction.

## Signature

```python theme={"system"}
skew(xs=0.0, ys=0.0, origin='center', use_radians=False) -> GeoSeries
```

## Parameters

<ParamField path="xs" type="float" default="0.0">
  Shear angle for the x dimension, in degrees by default.
</ParamField>

<ParamField path="ys" type="float" default="0.0">
  Shear angle for the y dimension, in degrees by default.
</ParamField>

<ParamField path="origin" type="(center, centroid)" default="'center'">
  The skew origin. `"center"` uses each geometry's bounding-box
  center and `"centroid"` uses each geometry's centroid. A 2D or
  3D Shapely Point or coordinate tuple may also be supplied. Skew is
  a 2D operation, so an explicit origin's z coordinate is ignored.
</ParamField>

<ParamField path="use_radians" type="bool" default="False">
  If True, interpret `xs` and `ys` as radians instead of degrees.
</ParamField>

## Returns

<ResponseField name="return" type="GeoSeries">
  The skewed geometries.
</ResponseField>

<Note>
  Existing z coordinates are preserved. Results for mixed 2D/3D
  `GeometryCollection` objects, M or ZM ordinates, NaN z coordinates,
  non-finite angles or origin coordinates, and angles near 90 degrees
  may differ from GeoPandas because Sedona uses JTS while GeoPandas uses
  Shapely. This method applies Sedona's distributed semantics and does
  not materialize geometries locally to emulate Shapely.
</Note>

## Examples

```python theme={"system"}
>>> from shapely.geometry import Point
>>> from sedona.spark.geopandas import GeoSeries
>>> s = GeoSeries([Point(1, 2), Point(-1, -2)])
>>> s.skew(xs=45, origin=(0, 0))
0      POINT (3 2)
1    POINT (-3 -2)
dtype: geometry
```


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