def percent_change(ts, ax=-1):
    ts = np.asarray(ts)

    return (ts / np.expand_dims(np.mean(ts, ax), ax) - 1) * 100


#----------Event-related analysis utils ----------------------------------
Remove the item at the head of the eviction cache.
dataset/ETHPy150Open nipy/nitime/nitime/utils.py/percent_change--crossover with--dataset/ETHPy150Open kgaughan/uwhoisd/uwhoisd/utils.py/Cache.evict_one