This is the formula —
array: Input array or object having the elements to calculate the trimmed mean.
axis: Axis along which the trimmed mean is to be computed. By default axis = 0.
limits: Lower and upper bound of the array to consider, values less than the lower limit or greater than the upper limit will be ignored. If limits is None [default], then all values are used.
Returns: Trimmed mean of the array elements based on the set parameters.
Code # 1:
Trimmed Mean: 9.5 Trimmed Mean by setting limit: 6.0
Code # 2: with multidimensional data, the () axis works