supy.util.fill_gap_all

Contents

Tip

  1. Need help? Please let us know in the SUEWS Community.

  2. Please report issues with the manual on GitHub Issues (or use Report Issue for This Page for page-specific feedback).

  3. Please cite SUEWS with proper information from our Zenodo page.

6.3.2.3. supy.util.fill_gap_all#

supy.util.fill_gap_all(ser_to_fill: Series, freq='1D', limit_fill=1, thresh_ratio=0.8) Series[source]#

Fill all gaps in a time series using data from neighbouring divisions of ‘freq’

Parameters:
  • ser_to_fill (pandas.Series) – Time series to gap-fill

  • freq (str, optional) – Frequency to identify gapped divisions, by default ‘1D’

  • limit_fill (int, optional) – Maximum number of consecutive NaNs to fill. Any number less than one means no pre-gap-filling interpolation will be done.

  • thresh_ratio (float, optional) – Threshold ratio for gap filling, by default 0.8

Returns:

  • pandas.Series – Gap-filled time series.

  • Patterns

  • ——–

  • 010 (missing data in division between others with no missing data)

  • 01 (missing data in division after one with no missing data)

  • 10 (division with missing data before one with no missing data)