> ## Documentation Index
> Fetch the complete documentation index at: https://nixtlaverse.nixtla.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Seasonal

> Find the seasonal period

##

### `find_season_length`

```python theme={null}
find_season_length(x, max_season_length)
```

Find the length of the seasonal period of the time series.
Returns 0 if no seasonality is found.

**Parameters:**

| Name | Type                                   | Description                 | Default    |
| ---- | -------------------------------------- | --------------------------- | ---------- |
| `x`  | <code>[ndarray](#numpy.ndarray)</code> | Array with the time series. | *required* |

**Returns:**

| Name  | Type                     | Description    |
| ----- | ------------------------ | -------------- |
| `int` | <code>[int](#int)</code> | Season period. |
