Python statistics module provides the functions to mathematical statistics of numeric data. There are some popular statistical functions defined in this module. mean() function The mean() function is used to calculate the arithmetic mean of the numbers in the list. Example import statistics # list of positive integer numbers datasets = [5, 2, 7, 4, 2, 6, 8] x = statistics.mean(datasets) # Printing the mean print(“Mean is :”, x) Output: Mean is : 4.857142857142857 median() function The … Continue reading Python statistics module
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed