Skip to content

Instantly share code, notes, and snippets.

@geojackass geojackass/ stock_draw.py
Last active Aug 29, 2015

Embed
What would you like to do?
stock_draw
import pandas as pd
import matplotlib.pyplot as plt
close_px_all = pd.read_csv('stock_px.csv', parse_dates=True, index_col=0)
close_px = close_px_all[["AAPL", "MSFT", "XOM", "SPX"]]
close_px = close_px.resample("B", fill_method="ffill")
close_px.plot()
plt.legend(loc = 2)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.