DEPR: mad (mean absolute difference) functions · Issue #11787 · pandas-dev/pandas (original) (raw)
The generic function .mad()
calculates the mean absolute difference of a set of data, but in some cases the median absolute difference is more appropriate. In R
, the mad()
function accepts a center
argument to specify how the average absolute difference should be calculated. I propose to add the same to the pandas function.