Skip to content

Instantly share code, notes, and snippets.

@jurand71
Created July 3, 2022 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jurand71/dfe2e086e30ff7459c20a65f43bbcfee to your computer and use it in GitHub Desktop.
Save jurand71/dfe2e086e30ff7459c20a65f43bbcfee to your computer and use it in GitHub Desktop.
transformer = FunctionTransformer(lambda x: x**(1/1.3), 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