Been using gmail-logger to collect data about your Gmail inbox, and want to generate graphs like those in my blog post, Three Years of Logging My Inbox Count? Perfect, because that's all this repo does.
Fair warning: a lot of this code is inelegant. Don't study it as an example of how to do Pandas/Matplotlib right.
Make sure you have
git clone https://github.com/mddub/gmail-graphs cd gmail-graphs virtualenv venv && . venv/bin/activate pip install -r requirements.txt ipython notebook --pylab inline
Figures 1 & 2: Inbox count over time
Follow the Inbox count over time IPython Notebook.
Figure 3: Inbox count by age
compute_ages_on_each_day.py and the Inbox count by age IPython Notebook to graph the results.
Figure 4: Length of time a message spends in inbox, by date of arrival
compute_time_in_inbox_by_date_received.py and the Length of time a message spends in inbox IPython Notebook to graph the results.
Issues / enhancements
I've tried my best to generalize this code to run against anyone's gmail-logger data, but I can't foresee how well others' data will play with it. If you run into issues, please file an issue. If you have enhancements, pull requests are welcome.