Guides · For agents
Change prices across a list, with a dry run and an undo
Add 10% to every price as a dry run, apply it to a new file with a receipt, and undo it byte for byte if you need to. In the test file, 8 of 12 prices change and 3 are flagged for you.
Ask your agent
With Sift connected (setup takes three steps), paste this and swap in your own paths.
Use Sift with /path/to/rules.prices.json on /path/to/price_list.csv. Dry run the number fix on the price column, adding 10%. Tell me what would change and what was flagged, then apply it if I say yes.
A price change touches most rows, so the rules file's share-of-rows limit has to allow it. This one allows up to 90%: {"guardrails": {"stop_if_share_of_rows_changed_over": 0.9}}. With the usual 0.2, Sift stops before writing anything.
What Sift sends back
The sums are exact decimals, rounded half up to each price's own decimal places: 10.00 becomes 11.00 and 4.50 becomes 4.95.
What to do next
- The £4.99 price was flagged because of the £. Run strip_currency on the column first, then the rise.
- Fix the other two (abc and 7.1.2) at the source. Sift will not guess what they meant.
- Keep the receipt with the new price list. It records every old and new value.
Questions
Multiply, round, trim spaces, change case, swap values from a lookup table, reformat dates, strip currency symbols, fill blanks, and set a value where a condition holds. Each one runs as a dry run, then apply with a receipt, then an exact undo.
Fixes work on CSV, which is what makes the undo exact. Save the sheet as CSV first.
One file, no agent? Clean a file by hand in your browser, with nothing uploaded.