Skip to content

Commit 673de07

Browse files
committed
index.rst
1 parent 673c876 commit 673de07

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

category_encoders/__init__.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,6 @@
3030
import warnings
3131
from textwrap import dedent
3232

33-
if sklearn.__version__ < '1.2.0':
34-
warnings.warn(
35-
message=dedent(f"""\
36-
You are using version {sklearn.__version__} of scikit-learn.
37-
You should consider upgrading the library to at least version "1.2.0".
38-
Starting from this version, get_feature_names_out() will be fully supported and will perform \
39-
consistently for all estimators even, if they are part of a composed estimator (by \
40-
using Pipeline, ColumnTransformer or any other complex object).
41-
"""),
42-
category=ImportWarning
43-
)
4433

4534
__version__ = '2.6.0'
4635

docs/source/index.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,30 @@ To use:
7474
All of these are fully compatible sklearn transformers, so they can be used in pipelines or in your existing scripts. If
7575
the cols parameter isn't passed, every non-numeric column will be converted. See below for detailed documentation
7676

77+
Known issues:
78+
----
79+
80+
`CategoryEncoders` internally works with `pandas DataFrames` as apposed to `sklearn` which works with `numpy arrays`. This can cause problems in `sklearn` versions prior to 1.2.0. In order to ensure full compatibility with `sklearn` set `sklearn` to also output `DataFrames`. This can be done by
81+
82+
.. code-block::python
83+
84+
sklearn.set_config(transform_output="pandas")
85+
86+
for a whole project or just for a single pipeline using
87+
88+
.. code-block::python
89+
90+
Pipeline(
91+
steps=[
92+
("preprocessor", SomePreprocessor().set_output("pandas"),
93+
("encoder", SomeEncoder()),
94+
]
95+
)
96+
97+
If you experience another bug, feel free to report it on [github](https://github.com/scikit-learn-contrib/category_encoders/issues)
98+
7799
Contents:
100+
----
78101

79102
.. toctree::
80103
:maxdepth: 3

0 commit comments

Comments
 (0)