## FeaturesSelector


Base class for all mlfeatures-native column selectors.


Usage

``` python
FeaturesSelector()
```


Subclasses implement `resolve`. Instances compose with `&` (intersection), `|` (union), `~` (complement), and `-` (difference). A mlfeatures-native selector must **lead** any cross-family expression: `mlfeatures_sel & cs.numeric()` works (the right operand is coerced via [wrap](Selectors.md#mlfeatures.Selectors.wrap)), but `cs.numeric() & mlfeatures_sel` does not: polars raises `TypeError` and narwhals silently produces a broken `Expr`, neither of which mlfeatures can intercept. Use [Selectors.wrap](Selectors.md#mlfeatures.Selectors.wrap) to put a polars / narwhals selector first.

Prefer these over `polars.selectors` when a step should respect roles or column provenance. A polars selector knows only names and dtypes, so `cs.numeric()` also matches the target; mlfeatures selectors can restrict to the `feature` role or to columns derived from a given source. A polars selector is still accepted anywhere a selector is.
