Skip to content

Instantly share code, notes, and snippets.

@skrawcz
Created July 24, 2022 01:04
Show Gist options
  • Save skrawcz/14e14784f032f058dfb724caf32d6a8c to your computer and use it in GitHub Desktop.
Save skrawcz/14e14784f032f058dfb724caf32d6a8c to your computer and use it in GitHub Desktop.
Function for Tidy Pandas in Production post
@tag(owner='Data-Science', pii='False')
@check_output(data_type=np.float64, range=(-5.0, 5.0), allow_nans=False)
def height_zero_mean_unit_variance(height_zero_mean: pd.Series,
height_std_dev: pd.Series) -> pd.Series:
"""Zero mean unit variance value of height"""
return height_zero_mean / height_std_dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment