Skip to content

Instantly share code, notes, and snippets.

@jurand71
Created July 3, 2022 05:24
Show Gist options
  • Save jurand71/ceb50b89d4966b05c9dce04163b138af to your computer and use it in GitHub Desktop.
Save jurand71/ceb50b89d4966b05c9dce04163b138af to your computer and use it in GitHub Desktop.
transformer = FunctionTransformer(lambda x: 1/x, validate=True)
transformed_var = transformer.transform(df[variables].fillna(1))
transformed_var = pd.DataFrame(transformed_var, columns = variables)
Gaussian_distribution_check(df, "YearBuilt" )
Gaussian_distribution_check(transformed_var, "YearBuilt")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment