# meteostat.TimeSeries.completeness

The share of non-`NaN` values of the time series's full length.

- **Type:** _Method_ of [`TimeSeries`](./meteostat.TimeSeries.md)
- **Source Code:** [GitHub](https://github.com/meteostat/meteostat/blob/main/meteostat/api/timeseries.py#L280)

## Parameters

| Parameter   | Description                                                              | Type                                              | Default |
| ----------- | ------------------------------------------------------------------------ | ------------------------------------------------- | ------- |
| `parameter` | The parameter of interest, if `None` the whole time series is considered | [`Parameter`](./meteostat.Parameter.md) or `None` | `None`  |

## Returns

`float`

- `0` means all data is missing
- `1` means all data is available

## Example

```python
from datetime import date
import meteostat as ms

# Specify time range
START = date(2018, 1, 1)
END = date(2018, 12, 31)

# Get daily data
ts = ms.daily('10637', START, END)

# Get completeness of precipitation data
# highlight-next-line
completeness = ts.completeness(ms.Parameter.PRCP)

print(f'Precipitation data completeness: {completeness * 100}%')
```
