Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

calculate mean median mode in python

>>> import statistics

>>> statistics.median([3, 5, 1, 4, 2])
3

>>> statistics.median([3, 5, 1, 4, 2, 6])
3.5
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #calculate #median #mode #python
ADD COMMENT
Topic
Name
8+4 =