We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3d588f6 + 2a1aa8a commit 06e46dbCopy full SHA for 06e46db
category_encoders/wrapper.py
@@ -78,7 +78,7 @@ def __init__(self, feature_encoder: utils.BaseEncoder):
78
def fit(self, X, y, **kwargs):
79
# unite the input into pandas types
80
X, y = utils.convert_inputs(X, y)
81
- y = pd.DataFrame(y, columns=['target'])
+ y = pd.DataFrame(y.rename('target'))
82
83
# apply one-hot-encoder on the label
84
self.label_encoder = encoders.OneHotEncoder(handle_missing='error',
0 commit comments