Skip to content

Instantly share code, notes, and snippets.

@kxzk
Created August 9, 2019 21:37
Show Gist options
  • Save kxzk/d13e0f00be5d9fc9b89ee9af258b5a39 to your computer and use it in GitHub Desktop.
Save kxzk/d13e0f00be5d9fc9b89ee9af258b5a39 to your computer and use it in GitHub Desktop.
df["salary_zscore"] = (df["salary"] - df["salary"].mean()) / df["salary"].std()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment