Business dataset duplicates: preserve events and revisions while removing redundant exports Distinguish file copies, repeated exports, revised documents and recurring transactions with a worked invoice-family ledger and reversible duplicate decisions. A business duplicate rule must name the unit it considers redundant: bytes, exports, document versions or business events. Similar text, identifiers or amounts alone do not settle that question. Preserve meaningful revisions and recurring transactions, keep lineage, and make exclusions reversible so deduplication does not destroy the workflow the model needs to learn. Define duplicate levels before running a removal operation A repeated PDF download may duplicate bytes; a PDF and a scan can depict the same invoice version with different bytes. A corrected invoice can be almost identical to its predecessor while changing the decisive amount. A second purchase can legitimately repeat supplier, date and amount. Treat these as different relationships. The primary [pandas drop_duplicates reference](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.drop_duplicates.html) allows duplicate detection by selected columns and distinguishes which occurrence is retained. That is software behavior, not a declaration that those columns establish a business identity. Choose the business rule first and document the columns and ordering it requires. A five-artifact example with three valid totals Illustrative ledger: invoice family A has an original and a corrected version, each with one repeated byte-identical export. Family B is a different invoice. Amounts below are invented integer minor units in one declared currency, with two decimal places for display. The example’s “current” view deliberately uses the accepted latest revision; it is not a universal accounting rule. There are five artifacts, three meaningful document versions and two invoice families. Summing all artifact amounts gives 48,000 minor units. Removing repeated exports leaves 29,000 across versions. Selecting the current accepted version per family yields 19,000. These answer different questions and should not be mixed as a single collection count or financial total. Artifact Family / version Illustrative amount Disposition for a version-aware archive A-v1-original A / v1 10000 Retain as prior version A-v1-copy A / v1 10000 Flag redundant copy; preserve lineage A-v2-original A / v2 9000 Retain as corrected version A-v2-copy A / v2 9000 Flag redundant copy; preserve lineage B-v1-original B / v1 10000 Retain as separate invoice family Keep revision relationships distinct from exact-copy evidence The [W3C PROV ontology](https://www.w3.org/TR/prov-o/) distinguishes general derivation from revision relationships. A business archive can use that distinction to keep the old and new document states connected instead of replacing the earlier artifact silently. For each record, preserve source-system namespace, source document ID, version ID where established, capture/export time and the evidence for a replacement relationship. An amount or filename suffix is not sufficient evidence that one invoice replaces another. If the source lacks revision markers, record the proposed family link as unresolved until reviewed. Use composite business identity and keep uncertain matches An invoice number may be unique only within a supplier, business unit or source system. Define that scope before grouping. Keep a separate artifact ID so scans, OCR text and exports can be traced without pretending they are independent business events. Normalize formatting cautiously; punctuation or leading zeros can be part of a meaningful identifier. Fuzzy text or layout similarity can generate candidates, but review them against source identity, dates, status and line-item evidence. A repeated template is not necessarily a duplicate document. A credit note, reversal or amendment may be a distinct event that belongs in the workflow even when it resembles the original closely. Make exclusions explicit rather than deleting history A reversible ledger should name the excluded artifact, retained reference, relation type, matching evidence, decision and rule version. Keep “excluded from this training export” separate from “source artifact deleted.” A change-detection or revision-retrieval task may need the very predecessor a static extraction export omits. In the teaching example, A-v1 remains in the version-aware archive even when the current-only view uses A-v2. The copies can remain traceable while being excluded from independent training counts. If a later review rejects the claimed replacement, the archive can reconstruct the earlier decision without having destroyed its evidence. Apply grouping to evaluation as a separate decision If a benchmark claims unseen document-family generalization, an original in train and its corrected version in test can reveal most of the same text. Group the relevant family, including scans and OCR derivatives. If the task is explicitly to compare revisions, preserve the pair within the task unit and define which source families are held out. Entity or organization separation can require broader groups than document families. Record what the chosen split measures and what remains shared. Deduplication does not establish evaluation independence merely because exact-copy counts fall to zero. Validate counts and business interpretations in a pilot Review clusters containing exact copies, corrected versions, repeated legitimate transactions, shared templates and unresolved identifiers. Reconcile before/after artifact, version, family and event counts. Inspect whether important status transitions disappear under the proposed rule, and separate source defects from preparation-induced duplicates. A Business Datasets request should include the target task, identity scope and whether historical versions or current views are needed. Ask for matching evidence and a decision ledger, not an unsupported promise that every surviving row is universally unique. The useful result is a task-specific archive whose retained and excluded relationships can be explained. Can we remove rows with the same supplier and amount? Not safely as a universal rule. They may represent recurring legitimate transactions, different versions or redundant exports. Identity scope and source evidence decide the treatment. Should corrected documents replace originals? A current-only view may choose an accepted latest revision, but a version-aware archive should preserve the predecessor relationship. State which view the task needs. Is a template duplicate the same as an event duplicate? No. Many independent documents can share a layout. Keep template and event identities separate, especially when measuring unseen-layout versus unseen-document performance. Research method: Fiund research desk; public sources, explicit worked-example labels and project-specific availability review. Editorial contact: hello@fiund.com. Sources pandas DataFrame.drop_duplicates: https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.drop_duplicates.html PROV-O: The PROV Ontology: https://www.w3.org/TR/prov-o/