Skip to content

Instantly share code, notes, and snippets.

View yagotome's full-sized avatar

Yago Tomé yagotome

View GitHub Profile
@yagotome
yagotome / github-digest.py
Created September 11, 2019 05:00
Resumo do arquivo de logs do github, rode esse script com python3 e com o pandas instalado (pip install pandas)
import sys
import pandas as pd
def parse_line(line):
return list(map(lambda l: l.strip(), line.split('|')))
with open(sys.argv[1], 'r', encoding='utf8') as f:
lines = f.readlines()
[header, _, *rows] = lines