Created
September 20, 2017 00:52
-
-
Save FavioVazquez/a1896f5bf970f2a3784b18fcc84ffdd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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