In [1]:
%matplotlib inline
from jupyterwf.data import get_fremont_data
data =get_fremont_data()
data.resample('W').sum().plot()
Out[1]:
In [2]:
ax=data.resample('D').sum().rolling(365).sum().plot()
ax.set_ylim(0,None);
In [3]:
data.groupby(data.index.time).mean().plot();
In [4]:
pivoted = data.pivot_table('Total',index=data.index.time,columns=data.index.date)
In [5]:
pivoted.iloc[:5,:5]
Out[5]:
In [6]:
pivoted.plot(legend=False,alpha=0.01)
Out[6]:
In [ ]: