(data, num_obs_per_period)
return (data, smoothed)
Returns a tuple consisting of two versions of the input data set: seasonally-decomposed and smoothed

      data : pandas DataFrame
        the input data set
      num_obs_per_period : int
        the number of observations in each period
Returns a tuple consisting of two versions of the input data set: seasonally-decomposed and smoothed
Returns a tuple consisting of two versions of the input data set : seasonally - decomposed and smoothed
def _get_decomposed_data_tuple(data, num_obs_per_period):
    """
    Returns a tuple consisting of two versions of the input data set: seasonally-decomposed and smoothed

      data : pandas DataFrame
        the input data set
      num_obs_per_period : int
        the number of observations in each period
    """
    decomposed = sm.tsa.seasonal_decompose(
        data, freq=num_obs_per_period, two_sided=False)
    smoothed = data - decomposed.resid.fillna(0)
    data = data - decomposed.seasonal - data.mean()
    return (data, smoothed)
def _get_decomposed_data_tuple ( data , num_obs_per_period ) : decomposed = sm . tsa . seasonal_decompose ( data , freq = num_obs_per_period , two_sided = False ) smoothed = data - decomposed . resid . fillna ( 0 ) data = data - decomposed . seasonal - data . mean ( ) return ( data , smoothed )