def ltrimboth (l,proportiontocut):
    lowercut = int(proportiontocut*len(l))
    uppercut = len(l) - lowercut
    return l[lowercut:uppercut]
Returns document of `reference_doctype`, `reference_doctype`
dataset/ETHPy150Open radlab/sparrow/src/main/python/third_party/stats.py/ltrimboth--crossover with--dataset/ETHPy150Open frappe/frappe/frappe/core/doctype/communication/communication.py/Communication.get_parent_doc