How to Solve NameError: name 'median_abs_deviation' is not defined -- scipy
Solution: Import the 'median_abs_deviation' module
To Solve the error, add the following line to the top of your code.
from scipy.stats import median_abs_deviation
For more information:
Python scipy median_abs_deviation