fips.filters.enough_obs_per_interval#

fips.filters.enough_obs_per_interval(index, intervals, threshold, level=None)[source]#

Determine which observations have enough data points per time interval.

Parameters:
  • index (pd.Index) – Index containing observations.

  • intervals (pd.IntervalIndex) – Intervals to group observations into.

  • threshold (int) – Minimum number of observations required per interval.

  • level (str, optional) – Level name to use if index is a MultiIndex. If None, uses the entire index.

Returns:

Boolean mask indicating which observations meet the threshold.

Return type:

list[bool]