Duangduean Studios
Practical guides

How to check a CSV before using it in an AI project

Compare a sample stock sheet with a reviewed version to learn missing-value, duplicate-record and mixed-type checks without uploading data.

By Duangduean Studios · 5 min read

Use a small sheet you can inspect

A model or dashboard can repeat mistakes from its input. Before changing software, inspect the records you are using. This exercise uses a fictional stock sheet with product_id, name, stock and updated columns. All analysis runs in your browser tab.

Open the CSV checker and choose “Try example with issues”. It loads nine data records. Expect one empty stock cell, one extra duplicate record and a stock value of “unknown” among otherwise numeric entries. The Cabinet name also has outer whitespace.

Read the findings rather than just the total

  1. Find the repeated A01 Chair record. The duplicate count represents the extra copy after the first matching whole record.
  2. Inspect the empty stock field for Table. Missing does not necessarily mean zero; decide what the field means before filling it.
  3. Look at the stock column summary. The numeric majority makes “unknown” worth reviewing, rather than proving it is wrong.
  4. Check the whitespace flag on Cabinet. The optional trimming setting affects duplicate comparisons and type inference; it does not rewrite the pasted CSV.

Compare a reviewed version

Choose “Try reviewed example”. It contains eight records after the repeated Chair record is removed. Cabinet has a fictional stock count of 7 and Table has 3. Those teaching values were supplied in the sample; the checker did not infer, verify or automatically repair them.

The reviewed example should have no issues in these checks. That result only means it passed these structural checks. It does not confirm that the stock is accurate, that every product is present or that these old example dates are suitable for a current report.

product_id,name,stock,updated
A01,Chair,12,2026-10-20
A02,Desk,5,2026-10-20

Try your own extract

  1. Keep a copy of the source spreadsheet. Export a small UTF-8 CSV or TSV with a header row.
  2. Choose the file or paste its text. Check the detected separator, especially if the source uses semicolons.
  3. Review each flagged column. Numeric-looking product identifiers and leading zeros may need to remain text.
  4. Download the findings CSV or report JSON. Correct the source only after checking the actual records, then run the checker again.

Understand the limits

Whole-record duplicate checks cannot identify two different rows that refer to the same customer or product. Mixed-type suggestions need at least two non-empty values and 80% agreement before a column is treated as numeric, boolean or an ISO date. A short or unusual column may remain text or mixed.

The checker accepts up to 2 MB, 20,000 data records and 100 columns. It cannot establish whether your intended use is appropriate or whether the dataset represents the people or situations you want to model. Pair these checks with domain review and a small set of expected answers. File contents and findings are not uploaded by the checker.

How to check a CSV before using it in an AI project