Tip

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

  2. Find an issue within this page? Please report it in the GitHub issues.

  3. A good understanding of SUEWS is a prerequisite to the proper use of SuPy.

supy.util.fill_gap_allΒΆ

supy.util.fill_gap_all(ser_to_fill: pandas.core.series.Series, freq='1D', limit_fill=1, thresh_ratio=0.8) pandas.core.series.Series[source]ΒΆ

Fill all gaps in a time series using data from neighbouring divisions of β€˜freq’

Parameters
  • ser_to_fill (pd.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.

Returns

  • ser_test_filled (pd.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)