Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

median absolute deviation 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 :: download youtube-dl python 
Python :: pandas groupby size column name 
Python :: pandas group by count 
Python :: pandas concat / merge two dataframe within one dataframe 
Python :: how to delete nan values in python 
Python :: date to day python 
Python :: how to upload file in python tkinter 
Python :: django static media 
Python :: python get names of all classes 
Python :: python pip install 
Python :: How to get current CPU and RAM usage in Python? 
Python :: remove character python 
Python :: matplotlib bar chart value_counts 
Python :: pytohn epsilon 
Python :: python delete duplicate lines in file 
Python :: python candlestick chart 
Python :: python sum dictionary values by key 
Python :: numpy function for calculation inverse of a matrix 
Python :: auto python to exe 
Python :: datetime year python 
Python :: global keyword python 
Python :: Python how to use __gt__ 
Python :: how to count range in django template 
Python :: python execute time 
Python :: list of df to df 
Python :: python 2.7 check if variable is none 
Python :: how to use variables in string in python 
Python :: 2d array python3 
Python :: python horizontal line 
Python :: python json open file 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =