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")What the rule reports
Section titled “What the rule reports”Calls to skrub joiners and fuzzy_join that mix the single shared key parameter with separate left/right or main/aux key parameters.
How to fix it
Section titled “How to fix it”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=).
Diagnostic message
Section titled “Diagnostic message”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.