def seasonal_mean(x, freq):
    return np.array([pd_nanmean(x[i::freq]) for i in range(freq)])
Return means for each period in x. freq is an int that gives the
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/tsa/seasonal.py/seasonal_mean