#NEWLINE# def variation( a , axis = 0 ) : #NEWLINE# #INDENT# '\n    Computes the coefficient of variation, the ratio of the biased standard\n    deviation to the mean.\n\n    Parameters\n    ----------\n    a : array_like\n        Input array.\n    axis : int or None, optional\n        Axis along which to calculate the coefficient of variation. Default\n        is 0. If None, compute over the whole array `a`.\n\n    Returns\n    -------\n    variation : ndarray\n        The calculated variation along the requested axis.\n\n    Notes\n    -----\n    For more details about `variation`, see `stats.variation`.\n\n    ' #NEWLINE# ( a , axis ) = _chk_asarray ( a , a ) #NEWLINE# return ( a . std ( axis ) / a . mean ( axis ) )