In [1]:
%matplotlib inline
from bigbang.archive import Archive
from git_data import Repos;
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd

In [2]:
repo = Repos.get_repo("scipy")
full_info = repo.commit_data;

In [3]:
convolveArray = [1/(n+1) for n in range(9)]

In [4]:
commitsPerWeek = repo.commits_per_week()
commitsPerWeek.plot();



In [9]:
topCommitters = repo.by_committer()[-5:];
topCommitters.plot(kind='bar')


Out[9]:
<matplotlib.axes.AxesSubplot at 0x7fef368e8a50>

In [6]:
withoutTopCommitters = repo.commits_per_day_full().drop(topCommitters.index, 0, 1);
withoutTopCommitters = withoutTopCommitters.groupby(level = 0).size().resample("W", how=np.sum)
withoutTopCommitters.plot()
#commitsPerWeek.plot()


Out[6]:
<matplotlib.axes.AxesSubplot at 0x7fef36fa78d0>

In [17]:
sole_info = repo.commits_for_committer("Ralf Gommers")
sole_info = sole_info.resample("M", how = np.sum, axis = 0)
sole_info.plot()


Out[17]:
<matplotlib.axes.AxesSubplot at 0x7fef35da6910>

In [7]:


In [7]: