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

Skip to content

MNT remove get_columns/callable in set_output - #34079

Merged
thomasjpfan merged 2 commits into
scikit-learn:mainfrom
lorentzenchr:mnt_set_output
Jun 12, 2026
Merged

MNT remove get_columns/callable in set_output#34079
thomasjpfan merged 2 commits into
scikit-learn:mainfrom
lorentzenchr:mnt_set_output

Conversation

@lorentzenchr

Copy link
Copy Markdown
Member

Reference Issues/PRs

None

What does this implement/fix? Explain your changes.

Small maintenance in sklearn.utils._set_output.

AI usage disclosure

None

Any other comments?

At first sight, set_output seemed like a good place to use narwhals. After a closer look, I would leave it as is.

@thomasjpfan thomasjpfan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the original version, columns was callable so that it is not called during "wrapping time".

Looking at the code now, this simplification works. lgtm

@lorentzenchr

Copy link
Copy Markdown
Member Author

@thomasjpfan Wanna merge? It has zero user impact.

@thomasjpfan
thomasjpfan merged commit e14b8f4 into scikit-learn:main Jun 12, 2026
37 of 38 checks passed
@lorentzenchr
lorentzenchr deleted the mnt_set_output branch June 12, 2026 17:30
prady0t pushed a commit to prady0t/scikit-learn that referenced this pull request Sep 2, 2026
@jeremiedbb jeremiedbb mentioned this pull request Sep 8, 2026
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants