Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. # Import optimus
  2. import optimus as op
  3. transformer = op.DataFrameTransformer(df)
  4. # Choose the columns to run the analysis and the names of the columns for the output
  5. transformer.impute_missing(["a","b"],["out_a","out_B"],strategy="mean").show()
  6. # Choose the columns to run the analysis and the names of the columns for the output
  7. transformer.impute_missing(["a","b"],["out_a","out_B"],strategy="median").show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement