Untitled

 avatar
unknown
plain_text
a year ago
329 B
5
Indexable
import pandas as pd
from matplotlib import pyplot as plt

df = pd.read_csv('/datasets/sbux.csv')
cols = ['open', 'close']

df.plot(x='date',
        y='cols',
        legend=False,
        title='Historic SBUX price',
        xlabel='Date',
        ylabel='Share price / USD',
        ylim=[1e6, 7e7],
        rot=50)

plt.show()
Editor is loading...
Leave a Comment