MNT Put back positional args in KBinsDiscretizer
@@ -126,7 +126,7 @@ class KBinsDiscretizer(TransformerMixin, BaseEstimator):
"""
@_deprecate_positional_args
- def __init__(self, n_bins=5, encode='onehot', strategy='quantile',
+ def __init__(self, n_bins=5, *, encode='onehot', strategy='quantile',
dtype=None):
self.n_bins = n_bins
self.encode = encode
