def ltrim1 (l,proportiontocut,tail='right'):
    if tail == 'right':
        lowercut = 0
        uppercut = len(l) - int(proportiontocut*len(l))
    elif tail == 'left':
        lowercut = int(proportiontocut*len(l))
        uppercut = len(l)
    return l[lowercut:uppercut]


####################################
#####  CORRELATION FUNCTIONS  ######
####################################
Slices off the passed proportion of items from ONE end of the passed
dataset/ETHPy150Open radlab/sparrow/src/main/python/third_party/stats.py/ltrim1