Skip to content

Instantly share code, notes, and snippets.

@geojackass geojackass/
Last active Aug 29, 2015

What would you like to do?
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")
plt.legend(loc = 2)
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.