SciPy
from scipy import stats
import numpy as np
data = [1, 2, 3, 4, 5, 5, 6, 7, 8]
# Mean
mean_value = [Link](data)
print("Mean:", mean_value)
# Median
median_value = [Link](data)
print("Median:", median_value)
# Mode
mode_value = [Link](data)
print("Mode:", mode_value)
# Standard Deviation
std_value = [Link](data)
print("Standard Deviation:", std_value)
Function Explanation
mean Computes the arithmetic mean of data
median Computes the median of data
mode Computes the mode of data
std Computes the standard deviation of
data