File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -382,13 +382,13 @@ NumericalTransformer takes function name as a string parameter and hence can be
382382 ... ])
383383 >>> mapper5.fit_transform(data)
384384 array([[1.38629436],
385- [1.79175947],
386- [1.09861229],
387- [1.09861229],
388- [0.69314718],
389- [1.09861229],
390- [1.60943791],
391- [1.38629436]])
385+ [1.79175947],
386+ [1.09861229],
387+ [1.09861229],
388+ [0.69314718],
389+ [1.09861229],
390+ [1.60943791],
391+ [1.38629436]])
392392
393393
394394
Original file line number Diff line number Diff line change 11import numpy as np
22import pandas as pd
3+ from sklearn .base import TransformerMixin
34
4- from sklearn .base import BaseEstimator , TransformerMixin
55
66def _get_mask (X , value ):
77 """
@@ -25,12 +25,13 @@ def __init__(self, func):
2525 """
2626 Params
2727
28- func function to apply to input columns. The function will be applied to each value.
29- Supported functions are defined in SUPPORTED_FUNCTIONS variable. Throws assertion
30- error if the not supported.
28+ func function to apply to input columns. The function will be
29+ applied to each value. Supported functions are defined
30+ in SUPPORTED_FUNCTIONS variable. Throws assertion error if the
31+ not supported.
3132 """
3233 assert func in self .SUPPORTED_FUNCTIONS , \
33- f"Only following func arguments are supported: { self .SUPPORTED_FUNCTIONS } "
34+ f"Only following func are supported: { self .SUPPORTED_FUNCTIONS } "
3435 super (NumericalTransformer , self ).__init__ ()
3536 self .__func = func
3637
You can’t perform that action at this time.
0 commit comments