code: def despike(df, n1=2, n2=20, block=100, keep=0):
      
      if isinstance(df, pd.Series):
          new_df = _despike(df, n1=n1, n2=n2, block=block, keep=keep)
      else:
          new_df = df.apply(_despike, n1=n1, n2=n2, block=block, keep=keep)
      return new_df
docs: Wild Edit Seabird-like function.  Passes with Standard deviation
      `n1` and `n2` with window size `block`.