def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()
def test_impl(n):
            df = pd.DataFrame({'A': np.arange(n) + 1.0, 'B': np.random.ranf(n)})
            Ac = df.A.pct_change(1)
            return Ac.sum()