How-to · Table Formatter

How to Validate, Clean, and Audit CSV Datasets Locally in Lab Mode

Step-by-step tutorial: switch to Lab Mode (Validate, Transform, Analyze), add audit steps to your recipe, run client-side anomaly checks, and submit sanitized data to a new sheet.

Open Table Formatter Add to VS Code
Free · runs in your browser · your files are never uploaded
How to Validate, Clean, and Audit CSV Datasets Locally in Lab Mode demonstration
Table Formatter — How to Validate, Clean, and Audit CSV Datasets Locally in Lab Mode

TLDR

Switch to Lab Mode via the database icon in the left rail, load your CSV dataset, and click Add Step to configure validation and cleaning functions across Validate, Transform, and Analyze modes. Click Run to execute the audit recipe in local browser memory without uploading sensitive files, review flagged anomalies in the bottom preview pane, and click Submit → New Sheet to generate a clean sheet in the Sheet Manager.


Before you start

You need a raw CSV or TSV file (such as customer logs, order registers, or vendor directories) and a web browser.

Lab Mode executes non-destructively in client memory: your original sheet data remains preserved while transformations run.


Step 1 — Switch to Lab Mode

In Table Formatter, click the Lab Mode icon (#labModeToggle with the database icon) in the left-hand icon rail.

The workspace displays the dual-pane Lab Mode interface:

Step 1 — Switch to Lab Mode

Step 2 — Load your dataset into Sheet Manager

Your raw records populate Sheet 1 in the bottom Sheet Manager tab bar (#sheetTabBar).

Step 2 — Load your dataset into Sheet Manager

Step 3 — Choose a mode tab and add audit steps

In the top tab strip of Lab Mode, choose the type of operation to perform:

  1. Validate: Click Add Step (#labAddStep) to pick validation checks:
- Check Empty / Missing: Flags blank required fields (e.g. Email or Customer_ID). - Check Duplicate Keys: Detects repeated primary keys or account numbers. - Check Data Types: Flags non-numeric values in numeric columns or malformed email syntax.
  1. Transform: Add data cleaning steps:
- Trim Whitespace: Strips leading, trailing, and invisible non-breaking spaces. - Replace Text / Regex: Substitutes inconsistent naming conventions. - Filter Rows: Drops invalid records based on criteria.
  1. Analyze: Run profiling statistics:
- Column Summary: Calculates row counts, null percentages, min, max, and distinct values.

Step 4 — Run the pipeline and inspect results

Click the blue Run button (#labRunBtn) in the top tab bar:

Step 5 — Submit clean data to a new sheet

Once your validation passes and transformations are complete:

  1. Click the green Submit → New Sheet button (#labSubmitBtn) in the bottom pane.
  2. Lab Mode exports the transformed dataset directly into a new sheet tab (e.g. Sheet 2) in the Sheet Manager.
  3. Click Exit (#exitLabMode) to return to the visual Table Mode editor.

Step 6 — Generate and download the sanitized file

In the right-hand Generate Code panel:


Pro tip: non-destructive source protection

Lab Mode never overwrites your raw source data.

You can modify function parameters, add or delete steps in #labStepList, and re-run audits as many times as needed. Your original raw source sheet stays untouched in the Sheet Manager tab bar.


Next steps

Table Formatter — Clean, reshape, and convert tabular data between HTML, CSV, TSV, SQL, and Markdown.