In [1]:
# Settings and imports
%matplotlib inline
from collections import OrderedDict
from IPython.display import display, Markdown
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
import learn
from monitoring.data import get_production_data
sns.set()
In [2]:
# Load data from local cache, fetch and store if not available.
data = get_production_data('2018-01-01')
In [3]:
# Example: look at the data
ts = data['task_sessions']
ts.tail()
Out[3]:
In [4]:
# Example: plot histogram of log-times of task sessions
ts.time_spent[ts.time_spent > 0].apply(np.log).hist()
Out[4]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]: