PyNance chart example code: close.py and adj_close.py

close.py

The following chart includes a stock split:

_images/close.png
# closing prices
import pynance as pn

def run():
    df = pn.data.get('GOOGL', '2014', '2015')
    pn.chart.close(df, title='GOOGL 2014')

if __name__ == '__main__':
    run()

adj_close.py

Adjusted close, however, adjusts for splits and dividends:

_images/adj_close.png
# adjusted close
import pynance as pn

def run():
    df = pn.data.get('GOOGL', '2014', '2015')
    pn.chart.adj_close(df, title='GOOGL 2014')

if __name__ == '__main__':
    run()