Notebook
In [1]:
from quantopian.pipeline import Pipeline
from quantopian.research import run_pipeline
from quantopian.pipeline.data.builtin import USEquityPricing
In [2]:
pipe = Pipeline(
    columns={
        'month_start_close': USEquityPricing.close.latest.downsample('month_start')
    },
)
In [3]:
df = run_pipeline(pipe, '2017-01-01', '2017-04-01')
In [4]:
df.loc[(slice(None), 24), :]
Out[4]:
month_start_close
2017-01-03 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-04 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-05 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-06 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-09 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-10 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-11 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-12 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-13 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-17 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-18 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-19 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-20 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-23 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-24 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-25 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-26 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-27 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-30 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-01-31 00:00:00+00:00 Equity(24 [AAPL]) 115.84
2017-02-01 00:00:00+00:00 Equity(24 [AAPL]) 121.30
2017-02-02 00:00:00+00:00 Equity(24 [AAPL]) 121.30
2017-02-03 00:00:00+00:00 Equity(24 [AAPL]) 121.30
2017-02-06 00:00:00+00:00 Equity(24 [AAPL]) 121.30
2017-02-07 00:00:00+00:00 Equity(24 [AAPL]) 121.30
2017-02-08 00:00:00+00:00 Equity(24 [AAPL]) 121.30
2017-02-09 00:00:00+00:00 Equity(24 [AAPL]) 121.30
2017-02-10 00:00:00+00:00 Equity(24 [AAPL]) 121.30
2017-02-13 00:00:00+00:00 Equity(24 [AAPL]) 121.30
2017-02-14 00:00:00+00:00 Equity(24 [AAPL]) 121.30
... ... ...
2017-02-21 00:00:00+00:00 Equity(24 [AAPL]) 121.30
2017-02-22 00:00:00+00:00 Equity(24 [AAPL]) 121.30
2017-02-23 00:00:00+00:00 Equity(24 [AAPL]) 121.30
2017-02-24 00:00:00+00:00 Equity(24 [AAPL]) 121.30
2017-02-27 00:00:00+00:00 Equity(24 [AAPL]) 121.30
2017-02-28 00:00:00+00:00 Equity(24 [AAPL]) 121.30
2017-03-01 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-02 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-03 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-06 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-07 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-08 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-09 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-10 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-13 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-14 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-15 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-16 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-17 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-20 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-21 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-22 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-23 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-24 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-27 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-28 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-29 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-30 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-03-31 00:00:00+00:00 Equity(24 [AAPL]) 136.99
2017-04-03 00:00:00+00:00 Equity(24 [AAPL]) 143.67

63 rows × 1 columns