Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

median absolute deviation python

# Median Absolute Deviation, MAD, is available in SciPy
from scipy.stats import median_abs_deviation

my_array = list(range(0, 10)) + [1000]
mad = median_abs_deviation(my_array)
print(mad) # prints 3.0
Comment

PREVIOUS NEXT
Code Example
Python :: compute mad python 
Python :: TabError: inconsistent use of tabs and spaces in indentation 
Python :: python diamond 
Python :: pyplot bar plot colur each bar custom 
Python :: python csv reader skip header 
Python :: python get screen size 
Python :: python exec return value 
Python :: create virtualenv in linux python 
Python :: pandas replace values with only whitespace to null 
Python :: pip install python 
Python :: openpyxl xls 
Python :: remove a character from a string python 
Python :: flask render error template 
Python :: how to use python to sleep if the user is not using the system 
Python :: extract minutes from timedelta python 
Python :: and condition with or in django 
Python :: make calculator in python 
Python :: base64 python decode 
Python :: remove columns that contain certain names in pandas 
Python :: python test if you can convert to int 
Python :: time.ctime(os.path.getmtime phyton in datetime 
Python :: Python __gt__ magic method 
Python :: how to randomize order of a list python 
Python :: hmac in python 
Python :: concat dataframe from list of dataframe 
Python :: python matplotlib pyplot 
Python :: flask render_template 
Python :: 2d array pytho 
Python :: python check if string is number reges 
Python :: simple time in python 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =