Skip to content

skrub/joiner-conflicting-keys

Pack Severity Fix Versions
skrub error none, edit by hand All versions

Joiner, AggJoiner, InterpolationJoiner, MultiAggJoiner, and fuzzy_join raise ValueError when the shared key argument (key, keys, or on) is passed together with per-table keys (main_key/aux_key, main_keys/aux_keys, or left_on/right_on).

joined = skrub.fuzzy_join(left, right, on="city", left_on="city_name")
joined = skrub.fuzzy_join(left, right, left_on="city_name", right_on="city")

Calls to skrub joiners and fuzzy_join that mix the single shared key parameter with separate left/right or main/aux key parameters.

Pass only key= / keys= / on= when both tables share the same column names, or pass the explicit pair (main_key= and aux_key=, main_keys= and aux_keys=, or left_on= and right_on=).

Passing key= alongside main_key= or aux_key= raises ValueError in skrub joiners. Pass either key= or the pair (main_key=, aux_key=).

See all rules in the skrub pack.