Untitled
Anonymous
Plain Text
01/14/2024 1:29 AM
329 B
22
Indexable
Never
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