guillermo-navas-palencia / optbinning

Optimal binning: monotonic binning with constraints. Support batch & stream optimal binning. Scorecard modelling and counterfactual explanations.
http://gnpalencia.org/optbinning/
Apache License 2.0
434 stars 98 forks source link

Keep pandas.DataFrame index in `_transform` method #286

Closed gtnx closed 7 months ago

gtnx commented 7 months ago

The _transform method does not keep the pd.DataFrame index which raises an error when it's used with a sklearn.compose.ColumnTransformer

See this line: https://github.com/guillermo-navas-palencia/optbinning/blob/master/optbinning/binning/binning_process.py#L1426

gtnx commented 7 months ago

Thanks. Could you indicate in this thread when the package is updated in pypi?

guillermo-navas-palencia commented 6 months ago

Yes, sure.

guillermo-navas-palencia commented 5 months ago

Version 0.19.0 released.