meteostat.TimeSeries.validate
On this page
Check if the time series passes all quality checks. Values which fail any of the checks can be set to NaN when fetching data (using the clean parameter).
- Type: Method of
TimeSeries - Source Code: GitHub
Parameters#
This method does not accept any parameters.
Returns#
bool
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)
# Validate the time series
is_valid = ts.validate()
print(f'Time series valid: {is_valid}')