Get z-score for a column and add to Datafame

Python

 1|  from scipy import stats
 2|  df['z_score'] = stats.zscore(df['column_name'])
Did you find this snippet useful?

Sign up for free to to add this to your code library