Agent skills for Liken: near-deduplication and record linkage for Python DataFrames.
78
98%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
A fuller breakdown of the API tiers and deduper categories. Load this when you need to choose between Single / Dict / Pipeline, or to understand how dedupers are classified.
| Collection | Pandas accessor | Quick tasks | Multiple columns | Logical rules (AND/OR/NOT) | Preprocessors |
|---|---|---|---|---|---|
| Single | ✅ | ✅ | ❌ | ❌ | ❌ |
| Dict | ❌ | ✅ | ✅ | ❌ (OR-across-columns only) | ❌ |
| Pipeline | ❌ | ❌ | ✅ | ✅ | ✅ |
Rules of thumb:
drop_duplicates(...). Only this tier supports the pandas accessor affordance.drop_duplicates() takes no column
argument. Different keys are effectively OR'd. Good for "different rules per column"
without logical composition.lk.pipeline() + lk.col(). The only tier with AND/OR/NOT rule
semantics, preprocessors, and the rule-predication optimization. Use for tiered or
multi-condition matching.A dict is shorthand for a pipeline that only uses OR. If you need anything beyond OR-across-columns, use a pipeline.
Every built-in deduper is classified two ways.
threshold (default
0.95 for all of them): exact (implicit threshold), fuzzy, tfidf, lsh,
jaccard, cosine.isna, isin, str_contains, str_startswith, str_endswith, str_len.
They are most useful inside pipelines, AND-combined with a similarity deduper, and can
be negated with ~.exact, fuzzy, tfidf, lsh, and all predicates. Operate on one
column.jaccard
(categorical data) and cosine (numerical data). exact also works on multiple
columns.See the liken-dedupers deduper catalog for every deduper's parameters.
drop_duplicates(columns=None, *, keep="first") removes duplicates and returns the
DataFrame.canonicalize(columns=None, *, keep="first", drop_duplicates=False, id=None) keeps all
rows but adds a canonical_id; returns a Dedupe — call .collect() for the
DataFrame, .canonicals() for group counts, .synthesize() for golden records. See
liken-record-linkage.