Skip to content

Commit 5d41f47

Browse files
committed
add content
1 parent 4153fe2 commit 5d41f47

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

_posts/2022-11-08-pandas-dataframe-output-for-sklearn-transformer.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,10 @@ postauthors:
2121
## Video
2222
<iframe width="560" height="315" src="https://www.youtube.com/embed/5bCg8VfX2x8" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
2323

24-
## Inprogress
24+
## Upcoming feature in release 1.2
25+
Starting next release(v1.2) Scikit-learn provides the ability for the outputs of Scikit-learn transformers to be either in Numpy or Pandas format by configuring it explicitly.Previously, mapping a transformed output back into columns would be cumbersome as it might not be a one-to-one mapping because of complex preprocessing (e.g: Polynomial features ).
26+
The next release(v1.2) Pandas output for transformers maps the transformed features into corresponding names/how they were created automatically.This would be useful for more complex preprocessing pipelines.
27+
28+
## Links to Sample notebook and usage:
29+
- [Pandas output for transformers](https://scikit-learn.org/dev/auto_examples/miscellaneous/plot_set_output.html#sphx-glr-auto-examples-miscellaneous-plot-set-output-py)
30+
- [Sample notebook](https://github.com/scikit-learn/blog/blob/main/assets/notebooks/sklearn-pandas-df-output.ipynb)

0 commit comments

Comments
 (0)