We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d70a63f commit 017e80cCopy full SHA for 017e80c
sklearn_pandas/transformers.py
@@ -1,6 +1,7 @@
1
import numpy as np
2
import pandas as pd
3
from sklearn.base import TransformerMixin
4
+import warnings
5
6
7
def _get_mask(X, value):
@@ -30,6 +31,11 @@ def __init__(self, func):
30
31
in SUPPORTED_FUNCTIONS variable. Throws assertion error if the
32
not supported.
33
"""
34
+
35
+ warnings.warn("""
36
+ NumericalTransformer is deprecated. Please write your own
37
+ transformer using Sklearn.base.TransformerMixin class
38
+ """, DeprecationWarning)
39
assert func in self.SUPPORTED_FUNCTIONS, \
40
f"Only following func are supported: {self.SUPPORTED_FUNCTIONS}"
41
super(NumericalTransformer, self).__init__()
0 commit comments