Skip to content

Commit ef72036

Browse files
prepare release 2.5.1
1 parent a0d4748 commit ef72036

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
unreleased
22
==========
3+
4+
v2.5.1
5+
==========
36
* Added base class for contrast coding schemes in order to make them more maintainable
47
* Added hierarchical column feature in target encoder
58
* Fixed maximum recursion depth bug in hashing encoder

category_encoders/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
from category_encoders.glmm import GLMMEncoder
2626
from category_encoders.quantile_encoder import QuantileEncoder, SummaryEncoder
2727

28-
__version__ = '2.5.0'
28+
__version__ = '2.5.1'
2929

30-
__author__ = "willmcginnis", "cmougan"
30+
__author__ = "willmcginnis", "cmougan", "paulwestenthanner"
3131

3232
__all__ = [
3333
"BackwardDifferenceEncoder",

category_encoders/base_contrast_encoder.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import numpy as np
77
from category_encoders.ordinal import OrdinalEncoder
88
import category_encoders.utils as util
9+
import warnings
910

1011
__author__ = 'paulwestenthanner'
1112

@@ -122,6 +123,8 @@ def transform_contrast_coding(X, mapping):
122123

123124
# See issue 370 if it is necessary to add an intercept or not.
124125
X['intercept'] = pd.Series([1] * X.shape[0], index=X.index)
126+
warnings.warn("Intercept column might not be added anymore in future releases (c.f. issue #370)",
127+
category=FutureWarning)
125128

126129
for switch in mapping:
127130
col = switch.get('col')

category_encoders/datasets/_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def load_compass():
1616
1717
Returns
1818
-------
19-
X: A pandas series containing features
19+
X: A pandas data frame containing features
2020
y: A pandas series containing the target variable
2121
2222
"""
@@ -51,7 +51,7 @@ def load_postcodes(target_type='binary'):
5151
5252
Returns
5353
-------
54-
X: A pandas series containing features
54+
X: A pandas data frame containing features
5555
y: A pandas series containing the target variable
5656
5757
"""

0 commit comments

Comments
 (0)