This repo contains the underlying code I used in my article Mean or median? Choose based on the decision, not the distribution.
The purpose of this code is to show how following the (misguided) conventional wisdom that the median is a more useful summary statistic than the mean can lead a business to a strategic disadvantage. Please refer to the article for more information.