Skip to content

Commit babf9ab

Browse files
author
RJ Agrawal
committed
added changelog
1 parent adf5746 commit babf9ab

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

README.rst

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@ Feature selection and other supervised transformations
382382
Working with sparse features
383383
****************************
384384

385-
A ``DataFrameMapper`` will return a dense feature array by default. Setting ``sparse=True`` in the mapper will return a sparse array whenever any of the extracted features is sparse. Example:
385+
A ``DataFrameMapper`` will return a dense feature array by default. Setting ``sparse=True`` in the mapper will return
386+
a sparse array whenever any of the extracted features is sparse. Example:
386387

387388
>>> mapper5 = DataFrameMapper([
388389
... ('pet', CountVectorizer()),
@@ -393,11 +394,12 @@ A ``DataFrameMapper`` will return a dense feature array by default. Setting ``sp
393394
The stacking of the sparse features is done without ever densifying them.
394395

395396

396-
Using Numerical Transformer
397+
Using ``NumericalTransformer``
397398
****************************
398399

399-
While you can use FunctionTransformation to generate artibtrary transformer but they cannot not serialized (pickled).
400-
NumericalTransformer takes function name as a string parameter and hence can be easily serialized.
400+
While you can use ``FunctionTransformation`` to generate arbitrary transformers, it can present serialization issues
401+
when pickling. Use ``NumericalTransformer`` instead, which takes the function name as a string parameter and hence
402+
can be easily serialized.
401403

402404
>>> from sklearn_pandas import NumericalTransformer
403405
>>> mapper5 = DataFrameMapper([
@@ -415,9 +417,20 @@ NumericalTransformer takes function name as a string parameter and hence can be
415417

416418

417419

418-
419420
Changelog
420421
---------
422+
2.0.0 (2020-08-01)
423+
******************
424+
* Deprecated support for Python < 3.6.
425+
* Deprecated support for old versions of scikit-learn, pandas and numpy. Please check setup.py for minimum requirement.
426+
* Removed CategoricalImputer, cross_val_score and GridSearchCV. All these functionality now exists as part of
427+
scikit-learn. Please use SimpleImputer instead of CategoricalImputer. Also
428+
Cross validation from sklearn now supports dataframe so we don't need to use cross validation wrapper provided over
429+
here.
430+
* Added ``NumericalTransformer`` for common numerical transformations. Currently it implements log and log1p
431+
transformation.
432+
* Added prefix and suffix options. See examples above. These are usually helpful when using gen_features.
433+
421434

422435
1.8.0 (2018-12-01)
423436
******************

setup.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,8 @@ def run(self):
4141
'scikit-learn>=0.23.0',
4242
'scipy>=1.4.1',
4343
'pandas>=1.0.5',
44-
'numpy>=1.18.1',
45-
'tqdm>=4.46.0'
44+
'numpy>=1.18.1'
4645
],
47-
extras_require={
48-
"progress-bar": ['tqdm>=4.46.0']
49-
},
5046
tests_require=['pytest', 'mock'],
5147
cmdclass={'test': PyTest},
5248
)

0 commit comments

Comments
 (0)