median Function of statistics Module in Python (Example) | Middle Value | statistics.median Function

Опубликовано: 10 Октябрь 2022
на канале: Statistics Globe
113
2

How to apply the statistics.median function in the Python programming language. More details: https://statisticsglobe.com/median-fu...
Python code of this video:

my_list = [4, 3, 8, 2, 7, 3, 8, 4, 7, 1, 5] # Create example list
print(my_list) # Print example list
[4, 3, 8, 2, 7, 3, 8, 4, 7, 1, 5]

import statistics # Load statistics module

print(statistics.median(my_list)) # Apply median() function

Follow me on Social Media:
Facebook – Statistics Globe Page:   / statisticsglobecom  
Facebook – R Programming Group for Discussions & Questions:   / statisticsglobe  
Facebook – Python Programming Group for Discussions & Questions:   / statisticsglobepython  
LinkedIn – Statistics Globe Page:   / statisticsglobe  
LinkedIn – R Programming Group for Discussions & Questions:   / 12555223  
LinkedIn – Python Programming Group for Discussions & Questions:   / 12673534  
Twitter:   / joachimschork  

Music by bensound.com