def dist(a, b):
    return sum((i-j)**2 for i, j in zip(a, b))
def test_impl(n):
            df = pd.DataFrame({'A': np.arange(n) + 1.0, 'B': np.random.ranf(n)})
            Ac = df.A.shift(1)
            return Ac.sum()