Skip to content

Commit 9063cba

Browse files
committed
Drop use of six
This package has an undeclared requirement on six, but since Python 2 is long unsupported, remove it and just use the Python 3 idiom.
1 parent c9db2d6 commit 9063cba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sklearn_pandas/pipeline.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import six
21
from sklearn.pipeline import _name_estimators, Pipeline
32
from sklearn.utils import tosequence
43

@@ -59,7 +58,7 @@ def __init__(self, steps):
5958

6059
def _pre_transform(self, X, y=None, **fit_params):
6160
fit_params_steps = dict((step, {}) for step, _ in self.steps)
62-
for pname, pval in six.iteritems(fit_params):
61+
for pname, pval in fit_params.items():
6362
step, param = pname.split('__', 1)
6463
fit_params_steps[step][param] = pval
6564
Xt = X

0 commit comments

Comments
 (0)