def trimboth(data, proportiontocut=0.2, inclusive=(True, True), axis=None):
 return trimr(data, limits=(proportiontocut, proportiontocut), inclusive=inclusive, axis=axis)

def trimboth ( data , proportiontocut = 0.2 , inclusive = ( True , True ) , axis = None ) : return trimr ( data , limits = ( proportiontocut , proportiontocut ) , inclusive = inclusive , axis = axis )
slices off a proportion of items from both ends of an array .