In brief
statistics.mean([1, 2, 100]) gives the arithmetic mean, while statistics.median([1, 2, 100]) gives 2. A large observation affects the two measures differently.
Useful to know
statistics.mean([1, 2, 100]) gives the arithmetic mean, while statistics.median([1, 2, 100]) gives 2. A large observation affects the two measures differently. [1]
Before summarizing durations or prices, establish the question. Do not describe the median as a total divided by a count. Check input types too: an unsuitable or mixed dataset does not become reliable merely by calling a function.
Sources
For further detail and to check the information: