

def daily_commit_timeline(user, repo):
    r = requests.get(('https://api.github.com/repos/%s/%s/stats/punch_card' % (user, repo)))
    data = r.json()
    df = pd.DataFrame(data, columns=['day', 'hour', 'commits'])
    return df

dataset/ETHPy150Open ContinuumIO/ashiba/examples/github-stats/github.py daily_commit_timeline/original