def tstv(ts, tv):
    try:
        return round(float(ts) / float(tv), 4)
    except ZeroDivisionError:
        return 0
Calculate ts/tv, and avoid division by zero error
dataset/ETHPy150Open arq5x/gemini/gemini/gemini_stats.py/tstv