Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement