Skip to content

Instantly share code, notes, and snippets.

@FavioVazquez
Created September 20, 2017 00:52
Show Gist options
  • Select an option

  • Save FavioVazquez/a1896f5bf970f2a3784b18fcc84ffdd8 to your computer and use it in GitHub Desktop.

Select an option

Save FavioVazquez/a1896f5bf970f2a3784b18fcc84ffdd8 to your computer and use it in GitHub Desktop.
# Import optimus
import optimus as op
transformer = op.DataFrameTransformer(df)
# Choose the columns to run the analysis and the names of the columns for the output
transformer.impute_missing(["a","b"],["out_a","out_B"],strategy="mean").show()
# Choose the columns to run the analysis and the names of the columns for the output
transformer.impute_missing(["a","b"],["out_a","out_B"],strategy="median").show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment