(data, xbar=None)
Return the square root of the sample variance.

    See ``variance`` for arguments and other details.

    >>> stdev([1.5, 2.5, 2.5, 2.75, 3.25, 4.75])
    1.0810874155219827
Return the square root of the sample variance.
Return the square root of the sample variance .
def stdev(data, xbar=None):
    """Return the square root of the sample variance.

    See ``variance`` for arguments and other details.

    >>> stdev([1.5, 2.5, 2.5, 2.75, 3.25, 4.75])
    1.0810874155219827

    """
    # Fixme: Despite the exact sum of squared deviations, some inaccuracy
    # remain because there are two rounding steps.  The first occurs in
    # the _convert() step for variance(), the second occurs in math.sqrt().
    var = variance(data, xbar)
    try:
        return var.sqrt()
    except AttributeError:
        return math.sqrt(var)
def stdev ( data , xbar = None ) : # Fixme: Despite the exact sum of squared deviations, some inaccuracy # remain because there are two rounding steps.  The first occurs in # the _convert() step for variance(), the second occurs in math.sqrt(). var = variance ( data , xbar ) try : return var . sqrt ( ) except AttributeError : return math . sqrt ( var )