Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

mad scipy

# 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 :: package for downloading from youtybe for python 
Python :: python cartesian product 
Python :: python requests cookies 
Python :: how to create a loop in python turtle 
Python :: remove nans from array 
Python :: how to change kay bindings in pycharm 
Python :: python 3.9.5 installed update default version 
Python :: media django 
Python :: sin and cos in python 
Python :: python read requests response 
Python :: discord.py cog 
Python :: remove a char in a string python 
Python :: create a list of characters python 
Python :: python - show repeted values in a column 
Python :: python check if number 
Python :: python run a system command 
Python :: how to rename columns in python 
Python :: python ceil 
Python :: python tkinter frame title 
Python :: ipython read audio file 
Python :: numpy get index of n largest values 
Python :: python extract value from a list of dictionaries 
Python :: python cmath constants 
Python :: python program running time 
Python :: pyhton regex to find string in file 
Python :: python sqlite dict 
Python :: how to append data to csv file in python without replacing the already present text 
Python :: get list of files in directory python 
Python :: python make a new window 
Python :: escape brackets in f string 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =