Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

compute mad 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 :: django rest framework simple jwt 
Python :: train,test,dev python 
Python :: plt axis label font size 
Python :: python enumerate() function 
Python :: click link selenium python 
Python :: comment concatener deux listes python 
Python :: parse first characters from string python 
Python :: django static url 
Python :: drop rows with null date in pandas 
Python :: selenium webdriver 
Python :: python datetime add one week 
Python :: normalize data python 
Python :: Network.py socket 
Python :: python script to read all file names in a folder 
Python :: how to check if all characters in string are same python 
Python :: logging in with selenium 
Python :: popup window python tkinter 
Python :: python unzip list 
Python :: python selenium implicit wait 
Python :: selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable 
Python :: pandas remove item from dictionary 
Python :: python palindrome string 
Python :: First Unique Character in a String in python 
Python :: printing python dictionary values 
Python :: numpy check if 2 array identical 
Python :: pandas create new column and fill with constant value 
Python :: python new line command 
Python :: variable naming rule in python 
Python :: python version installed in ubuntu 
Python :: python how to change an element in a multi dimensional list 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =