In [1]:
%matplotlib inline
import matplotlib.pyplot as plt;
from jubiiworkflow.data import get_data
plt.style.use('seaborn');
In [2]:
data = get_data()
data.head()
Out[2]:
In [3]:
p1 = data.resample('W').sum().plot();
p1.set_ylim(0, None);
In [4]:
p2 = data.resample('D').sum().rolling(365).sum().plot();
p2.set_ylim(0, None);
In [5]:
data.groupby(data.index.time).mean().plot();
In [6]:
pivoted = data.pivot_table('Total', index=data.index.time, columns=data.index.date);
pivoted.iloc[:5, :5]
Out[6]:
In [7]:
pivoted.plot(legend=False, alpha=0.01);
In [ ]: