You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+30-5Lines changed: 30 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,8 @@ Sklearn-pandas
7
7
8
8
This module provides a bridge between `Scikit-Learn <http://scikit-learn.org/stable>`__'s machine learning methods and `pandas <https://pandas.pydata.org>`__-style Data Frames.
9
9
10
-
In particular, it provides:
11
10
12
-
1. A way to map ``DataFrame`` columns to transformations, which are later recombined into features.
13
-
2. A compatibility shim for old ``scikit-learn`` versions to cross-validate a pipeline that takes a pandas ``DataFrame`` as input. This is only needed for ``scikit-learn<0.16.0`` (see `#11 <https://github.com/paulgb/sklearn-pandas/issues/11>`__ for details). It is deprecated and will likely be dropped in ``skearn-pandas==2.0``.
14
-
3. A couple of special transformers that work well with pandas inputs: ``CategoricalImputer`` and ``FunctionTransformer``.
11
+
In particular, it provides a way to map ``DataFrame`` columns to transformations, which are later recombined into features.
15
12
16
13
Installation
17
14
------------
@@ -20,6 +17,7 @@ You can install ``sklearn-pandas`` with ``pip``::
20
17
21
18
# pip install sklearn-pandas
22
19
20
+
23
21
Tests
24
22
-----
25
23
@@ -136,8 +134,18 @@ of the feature definition::
136
134
>>> mapper_alias.transformed_names_
137
135
['children_scaled']
138
136
137
+
Alternatively, you can also specify prefix and/or suffix to add to the column name. For example::
0 commit comments