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


## Related topics

- [Seasonal](/synforecast/docs/generators/statistical/seasonal.html.md)
- [Multiple Seasonal Trend (MSTL)](/statsforecast/docs/models/multipleseasonaltrend.html.md)
- [Seasonal Exponential Smoothing Model](/statsforecast/docs/models/seasonalexponentialsmoothing.html.md)
- [Conformal Seasonal Pool (CSP)](/statsforecast/docs/models/conformalseasonalpool.html.md)
- [Seasonal Exponential Smoothing Optimized Model](/statsforecast/docs/models/seasonalexponentialsmoothingoptimized.html.md)
