Python Statistics FMEAN














































Python Statistics FMEAN



Article No:3
Link for previous article(mean() method): javascript:nicTemp();
               FMEAN METHOD
        

Introduction:

                   Convert data to floats and compute the arithmetic mean.

This runs faster than the mean() function and it always returns a float. The data may be a sequence or iterable. If the input dataset is empty, raises a StatisticsError.

Example code:
                             >>> import statistics as st 
                             >>> st.fmean([3.5, 4.0, 5.25])
Output:4.25

Note:
              The fmean() method is same as mean().For better understanding please visit my previous article.

Comments