Skip to content

ApplyToFrame supports Sparse output#1552

Open
Vincent-Maladiere wants to merge 1 commit into
skrub-data:mainfrom
Vincent-Maladiere:sparse_apply_on_cols
Open

ApplyToFrame supports Sparse output#1552
Vincent-Maladiere wants to merge 1 commit into
skrub-data:mainfrom
Vincent-Maladiere:sparse_apply_on_cols

Conversation

@Vincent-Maladiere
Copy link
Copy Markdown
Member

Fixes #1513

Comment thread skrub/_apply_to_frame.py
raise ValueError(
"When a transformer outputs a sparse array or sparse matrix,"
" all columns of the input dataframe must beselected. Got"
f" cols={self.cols!r} instead of skrub.selectors.all()."
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi Vincent, I have a naive question/suggestion about this raise, would it be a good idea to put a brief observation in the docstring of cols arg to use all columns for sparse objects (despite that it is the default behaviour) ?

@rcap107 rcap107 added the stalled This PR hasn't seen activity in some time and may be closed or handled by maintainers label Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stalled This PR hasn't seen activity in some time and may be closed or handled by maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skb.apply does not support some scikit-learn estimators

3 participants