def zscore(time_series, axis=-1):
    time_series = np.asarray(time_series)
    et = time_series.mean(axis=axis)
    st = time_series.std(axis=axis)
    sl = [slice(None)] * len(time_series.shape)
    sl[axis] = np.newaxis
    zt = time_series - et[sl]
    zt /= st[sl]
    return zt
Returns the z-score of each point of the time series
dataset/ETHPy150Open nipy/nitime/nitime/utils.py/zscore