In [1]:
from __future__ import print_function
import sys
sys.path.append('../')
In [2]:
import whatstk.parser as wp
import whatstk.vis as wv
As always, we start by creating the WhatsAppChat object with the chat file that we want to analyse.
In [3]:
chat = wp.WhatsAppChat("../chats/samplechat.txt")
Now, we can get the week grid of number of interventions
In [4]:
week_df = wp.week_hour_grid(chat);
Finally, we can easily plot the results using the vis submodule
In [5]:
# Set figure size
import matplotlib
matplotlib.rcParams['figure.figsize'] = (20.0, 10.0)
In [6]:
wv.week_hour_grid(week_df, title_size=25, xlabel_size=20, ylabel_size=20, tick_size=15, anot_size=15)