solarforecastarbiter.metrics.preprocessing.exclude

solarforecastarbiter.metrics.preprocessing.exclude(values, quality_flags=None)[source]

Return a timeseries with all questionable values removed. All NaN values will be removed first and then iff quality_flag is set (not 0) the corresponding values will also be removed.

Parameters:
  • values (pandas.Series) – Timeseries values.
  • quality_flags (pandas.DataFrame) – Timeseries of quality flags. Default is None.
Returns:

pandas.Series – Timeseries of values excluding non-quality values.