Read a CSV, trim unnecessary spaces, save a new copy and check a repeat run. Keep the original unchanged.
Before you start
This complete path is free to read, with no Bible account required. You need a computer, your own files and access to Codex or Work. Their plans and usage limits are separate. The entire library is free. ChatGPT/Codex plans, other AI services and API fees are separate. This page includes the entire main workflow; linked guides are optional further reading.
The sample uses the free Python 3 runtime: official download. It needs no hosting, external API or Bible subscription.
Step 1. How to prepare your own file or a sample
Codex finds your CSV with text columns or uses the sample file. The archive has contacts.csv: three rows, two columns and extra spaces around names and emails. Use sample data for the first run.
Find the attached CSV. If none is attached, download https://codexbible.org/assets/free-starter/en-starter.zip and unpack the sample archive into a separate folder. Check encoding, delimiter, headers and row count. Preserve the original. Explain the columns you find. Agree on the rule: trim spaces from the edges of text values without deleting rows or changing letter case.
Step 2. How to prepare local processing
Python 3 and its standard csv module are enough for this sample. No external API, service or schedule is needed. Codex checks the installed interpreter first.
Find an available Python 3 interpreter and a way to run it in this folder. Use the standard csv module. If Python is missing, point to python.org/downloads and explain the required installation step. Create a processor that reads the CSV, trims agreed whitespace and writes a separate file without overwriting the original.
Step 3. How to run processing and check the saved file
Reopen the saved file from disk. A success message alone does not establish that the file is correct.
Run the processor. Reopen its saved CSV and compare headers, row count and order with the original. The sample should have three records and two columns with no outer whitespace. Compare the original file hash before and after. Show the output path.
Step 4. How to test a repeat run and bad input
A repeat should keep the same values. Invalid input should produce a clear error without destroying an earlier output.
On copies, test processing the result again, a header-only CSV, a missing file and a row with an extra field. Keep existing results on error. Fix issues and repeat the checks.
Step 5. How to save the processor for your own data
Keep the original, cleaned CSV, script and short run instructions. Agree on new rules before processing a different format.
Save the script, original and output in a separate folder. Add a README with the actual run command and rules. Follow the README for a fresh run and verify the saved result. Do not connect a schedule or external service without a separate task.
Result and next step
You will have a cleaned CSV, the preserved original and a processor with clear run instructions. A repeat check verifies row count, order and retained data.
Next: Your first automation
You can ask Codex to complete the path in one message:
Find the attached CSV. If none is attached, download https://codexbible.org/assets/free-starter/en-starter.zip and unpack the sample archive into a separate folder. Check encoding, delimiter, headers and row count. Preserve the original. Explain the columns you find. Agree on the rule: trim spaces from the edges of text values without deleting rows or changing letter case.
Find an available Python 3 interpreter and a way to run it in this folder. Use the standard csv module. If Python is missing, point to python.org/downloads and explain the required installation step. Create a processor that reads the CSV, trims agreed whitespace and writes a separate file without overwriting the original.
Run the processor. Reopen its saved CSV and compare headers, row count and order with the original. The sample should have three records and two columns with no outer whitespace. Compare the original file hash before and after. Show the output path.
On copies, test processing the result again, a header-only CSV, a missing file and a row with an extra field. Keep existing results on error. Fix issues and repeat the checks.
Save the processor, source and result in a separate folder. Add a README with the discovered run command and processing rules. Rerun it using the README and check the saved result. Do not connect schedules or external services without a separate task.