skrub
skrub copied to clipboard
Improve .expr.subsample docs
Fixes #1446
Todo:
- Add an example in the docstring
- Add a cross-reference to the user guide
- Expand a bit on this in the user guide
Talking with @Vincent-Maladiere, we thought of improving the error message by detecting when one of X and y is sampled, but the other isn't. This should be done in .skb.apply when an estimator that takes y is used.
It'll be a different PR though
ready for review, since we're not going to detect subsampling in this PR