Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

zscore python

from scipy import stats

a = np.array([ 0.7972,  0.0767,  0.4383,  0.7866,  0.8091,
               0.1954,  0.6307,  0.6599,  0.1065,  0.0508])

stats.zscore(a) # z = (x - avg) / std
>>> array([ 1.1273, -1.247 , -0.0552,  1.0923,  1.1664, 
           -0.8559, 0.5786, 0.6748, -1.1488, -1.3324])
Comment

PREVIOUS NEXT
Code Example
Python :: python code to generate fibonacci series 
Python :: how to delete a variable python 
Python :: python check if number is integer or float 
Python :: discord.py how to print audit logs 
Python :: get file arg0 python 
Python :: how to add an item to a dictionary in python 
Python :: python pdf fpdf example 
Python :: remove index in pd.read 
Python :: python regular expression remove numbers 
Python :: how to select a file in python 
Python :: pandas drop row from a list of vlaue 
Python :: python return min length of list 
Python :: text to audio in python 
Python :: pythn programme for adding user unputs 
Python :: concat all df in a diction 
Python :: python code to print prime numbers 
Python :: pandas nan to none 
Python :: remove nans and infs python 
Python :: wait in python 
Python :: add new keys to a dictionary python 
Python :: pandas add quantile columns 
Python :: split pandas row into multiple rows 
Python :: python return specific elements from list 
Python :: count repeated characters in a string python 
Python :: time.time() 
Python :: show columns pandas 
Python :: flask subdomains 
Python :: def function python 
Python :: how does urllib.parse.urlsplit work in python 
Python :: kill python process with bash 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =