Skip to content

Instantly share code, notes, and snippets.

@jurand71
Created July 3, 2022 05:30
Show Gist options
  • Save jurand71/5bb30a05bebf5fd52abd701873fa1482 to your computer and use it in GitHub Desktop.
Save jurand71/5bb30a05bebf5fd52abd701873fa1482 to your computer and use it in GitHub Desktop.
transformer = FunctionTransformer(np.log, 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