In [4]:
%run setup_env.py
randn = np.random.randn
index = pd.date_range('1/1/2000', periods=8)
s = pd.Series(randn(5), index=['a', 'b', 'c', 'd', 'e'])
df = pd.DataFrame(randn(8, 3), index=index,
columns=['A', 'B', 'C'])
wp = pd.Panel(randn(2, 5, 4), items=['Item1', 'Item2'],
major_axis=pd.date_range('1/1/2000', periods=5),
minor_axis=['A', 'B', 'C', 'D'])
In [ ]:
log.info('Head and Tail')
display_pretty(s.head(), s.tail())
log.info('Accelerated operations')
display_pretty(df * df, df + df, df > df)