def get_col_size(data):

    name, lang, star = [0]*3
    for eachR in data:
        name = max(L(eachR.get("NAME", "")), name)
        lang = max(L(eachR.get("LANG", "")), lang)
        star = max(L(eachR.get("STAR", "")), star)

    return {
        "NAME": name+1,
        "LANG": lang+1,
        "STAR": star+1
    }
For each column returns the maximum padding that should be used
dataset/ETHPy150Open staranjeet/github-trending-cli/githubtrending/helpers.py/get_col_size