(arr)
return numpy.median(arr)
Calculate median of values
Calculate median of values
Calculate median of values
def arr_median(arr):
    """Calculate median of values"""
    if len(arr) == 0:
        return numpy.nan

    return numpy.median(arr)
def arr_median ( arr ) : if len ( arr ) == 0 : return numpy . nan return numpy . median ( arr )