In [89]:
%matplotlib inline
import pandas as pd
import matplotlib.pyplot as plt
plt.style.use('seaborn-notebook')
In [115]:
!ls data/*.csv
In [119]:
dfs = []
for symbol in [
'kr',
'ngvc',
'sfm',
'vlgea',
'wfm',
'wmk',
'wmt',
]:
df = pd.read_csv('./data/{}-2016-01-01_2017-06-16.csv'.format(symbol),
parse_dates=['Date'], usecols=['Date', 'Volume'], index_col=['Date'])
df = df.rename(columns={'Volume': symbol.upper()})
dfs.append(df)
df = pd.concat(dfs, axis=1)
df = df.sort_index(ascending=True)
df.head()
Out[119]:
In [118]:
df.loc['2017-05-01':].plot()
Out[118]:
In [ ]: