pvanalytics.quality.gaps.trim#

pvanalytics.quality.gaps.trim(series, days=10)#

Mask the beginning and end of the data if not all True.

Parameters
  • series (Series) – A DatetimeIndexed series of booleans

  • days (int, default 10) – Minimum number of consecutive days that are all True for ‘good’ data to start.

Returns

A series of booleans with True for all data points between the first and last block of days consecutive days that are all True in series. If series does not contain such a block of consecutive True values, then the returned series will be entirely False.

Return type

Series

See also

start_stop_dates