How do I write a function that returns mean, median and trimmed mean in python?
How do I write a function that returns mean, median and trimmed mean in python? Question: I am attempting to write a function that will give me an output of mean, median and trimmed mean depending on what is chosen. This is the problem: Suppose x is a vector. Write a function f(x,type) where the …