question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DEPR: mad (mean absolute difference) functions

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jrebackcommented, Nov 8, 2017

i would be ok with deprecating .mad() entirely

0reactions
tinksumecommented, Aug 17, 2019

I am working on this as part of Walmart PandasHack

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mean absolute difference - Wikipedia
The mean absolute difference (univariate) is a measure of statistical dispersion equal to the average absolute difference of two independent values drawn ...
Read more >
Mean absolute deviation (MAD) review (article) - Khan Academy
The mean absolute deviation (MAD) is the mean (average) distance between each data value and the mean of the data set. It can...
Read more >
Mean Absolute Deviation: Definition, Finding & Formula
The mean absolute deviation (MAD) is a measure of variability that indicates the average distance between each observation and the mean.
Read more >
Mean Absolute Deviation: Formula, Steps & Solved Examples
Mean absolute deviation (MAD) is a variable that indicates the average distance between their observation and the mean. Mean absolute deviation is necessary ......
Read more >
pandas.DataFrame.mad — pandas 1.5.2 documentation
Return the mean absolute deviation of the values over the requested axis. Deprecated since version 1.5.0: mad is deprecated. Parameters.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found