In [1]:
import matplotlib.pyplot as plt
%matplotlib inline
plt.style.use('seaborn-notebook')
In [2]:
from jupyterworkflow.data import get_fremont_data
In [3]:
data = get_fremont_data()
In [4]:
data.plot();
In [5]:
data.resample('W').sum().plot();
In [6]:
ax = data.resample('D').sum().rolling(365).sum().plot();
ax.set_ylim(0, None);
In [7]:
data.groupby(data.index.time).sum().plot();
In [8]:
pivoted = data.pivot_table('Total', index = data.index.time, columns = data.index.date)
In [9]:
pivoted.iloc[:5,:5]
Out[9]:
In [10]:
pivoted.plot(legend=False, alpha = 0.01);
In [11]:
In [ ]: