Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ecf2ee

Browse files
committed
Added normalization of whitespace in OrdinalEncoder
1 parent d96df33 commit 0ecf2ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sklearn/preprocessing/_encoders.py

+1
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,7 @@ class OrdinalEncoder(_BaseEncoder):
964964
>>> X = [['Male', 1], ['Female', 3], ['Female', 2]]
965965
>>> enc.fit(X)
966966
... # doctest: +ELLIPSIS
967+
... # doctest: +NORMALIZE_WHITESPACE
967968
OrdinalEncoder(categories='auto', dtype=<class 'numpy.float64'>,
968969
missing_values=nan)
969970

0 commit comments

Comments
 (0)