Workflows

When to use rules instead of AI for data cleaning

Use a data cleaning rule when you can state exactly what should change and point to evidence that supports the change. A rule can convert a known unit or apply an approved mapping. If the file lacks the information needed to make a correction, leave the value unresolved or recover it from a trusted source.

Ask what would make the correction true

A warehouse sends parcel weights in grams. A downstream system expects kilograms. If the export documentation confirms the unit, the correction is division by 1,000. Record the original unit and agree on how much precision the receiving system needs. Now there is a rule a second person can check without asking what you meant by “fix the weights.”

Suppose the export has no unit information and some rows came from a different warehouse. A value of 850 might look like grams, but its magnitude alone cannot tell you which unit was used. The missing piece is provenance. Ask the source owner, look up the sending system's export settings, or mark the affected weights as unresolved.

Let a reference table carry the decision

Some corrections depend on a list maintained elsewhere. A purchasing team might have an approved table that maps old cost centre codes to current ones. Join the input to that table and apply only mappings that resolve cleanly. Keep the mapping version or effective date with the run, especially if finance can change the codes midyear.

Check that a code has exactly one applicable mapping before you replace it. If one legacy code maps to two new centres for the same period, the table needs a decision from its owner. Selecting whichever match appears first gives you a repeatable answer with no basis for choosing it.

Keep estimates visible

Sometimes the task is genuinely predictive. A team doing exploratory analysis may want to estimate missing weights so it can model shipping costs. An estimation method can help if it is appropriate for the data and you check its performance on parcels with known weights. Keep those estimates in a separate field, record how you produced them, and make sure downstream users can distinguish them from measured values.

That distinction matters when the same data serves two purposes. A planning model can tolerate an explicitly labelled estimate. A claim about what a particular parcel weighed needs evidence about that parcel.

Write down the cases the rule can handle

Before applying a rule across a large file, check three cases: a value the rule should change, a value it should leave alone, and a value it cannot resolve. Agree on what the output should show in each case. After running it, review how many rows fell into each group. If the unresolved count jumps, look for a change in the source before expanding the rule.

How Fnd8n helps

Fnd8n uses explicit operations and settings to process data. It does not use AI.