Geurim LabGEURIM LAB

GEURIM LAB / PRACTICAL GUIDES

Clean whitespace, empty rows and duplicates before charting

Two similar-looking rows are not always duplicate records. Use this small worked example in Clean tables, check what remains, then pass it to a chart. The numbers below are synthetic practice data, not actual performance figures.

← All guides · Open table cleaner →

1. Load the before CSV

Download the before CSV and select it with ‘CSV / TSV file’. Use Auto-detect or Comma (CSV) and keep ‘First row is a header’ checked. Selecting a file loads the table immediately. If you paste the text instead, select ‘Load table’.

Month,Plan,Actual
 January ,12,10
January,12,10
,,
February,15,14
February,15,13
March,18,17
March,18,17

There are 8 rows including headings and 3 columns. The first January cell has leading and trailing spaces. The line containing two commas has three empty cells. February has two different Actual values, 14 and 13. For this exercise, keep both records.

2. Trim, remove empty rows, then compare whole rows

Choose ‘Trim whitespace’ to remove leading and trailing whitespace from every cell, including headings. Internal spaces are not collapsed, and the count stays at 8 rows. ‘Remove empty rows’ then removes data rows where every cell is empty or whitespace-only, leaving 7 rows. Partially empty rows and the header remain.

Set Duplicate comparison to ‘All columns’ and select ‘Remove duplicates’. The two January rows now match, as do the two March rows. The first of each pair survives, leaving 5 rows including headings. Compare your result with the text below or download the expected after CSV.

Month,Plan,Actual
January,12,10
February,15,14
February,15,13
March,18,17

Duplicates are defined by cell text, not meaning

All columns compares the strings in every cell. It is case-sensitive, does not trim automatically and treats 12 and 12.0 as different values. That is why we trimmed first. Selecting the Month column alone would also remove the second February record despite its different Actual value. Deduplication does not sum, average or select the newest record.

Check the source to decide what the February rows mean. If they are separate observations, distinguish them in your source spreadsheet, for example as February A and February B. Undo an incorrect removal with ‘Undo one step’, which retains up to 10 steps, or use ‘Restore original’. Loading a new table replaces the current work and undo history.

3. Check text that looks like a number

Cleaning does not calculate or repair numbers. Codes such as 001 remain strings, and Decimal preview changes only the display. Copy and CSV export retain the underlying cell values. Excel may strip leading zeros when opening a CSV, so import code columns as text.

Chart transfer requires a nonempty X value in the first column and finite numeric Y values in all remaining columns. Values such as 12.5, -3 and 1e3 work. Values such as 1,200, 12%, 15 kg and empty cells do not. Quoting a comma-containing CSV value preserves it as one cell but does not make it a valid chart number. Resolve units, percentage meaning and decimal notation in the source, then reload. Do not replace a missing measurement with zero just to pass validation.

4. Send to a chart or save a CSV

This guide’s CSV is a separate chart-ready example. The table tool’s built-in ‘Load example’ includes a text Category column in second position, so it cannot be sent straight to a chart. For that sample, use Excel or another source editor to gather one X column and the numeric columns you want, such as Item and Quantity, then copy and paste those columns into the chart tool. The table cleaner does not automatically select or remove unwanted columns.

Choose ‘Create a chart from this table’ to open the chart workspace in the same tab. Text month labels make this example start as a bar chart, with both February rows retained as separate entries. Line and scatter charts need numeric X values. Transfer requires headings of 1–70 characters each, one X column, 1–6 numeric Y columns and 1–2,000 data rows.

The transfer uses temporary storage in the same tab and is deleted when the chart reads it. Transfer data is accepted within five minutes. If browser storage blocks the connection, save a CSV and import it in the chart tool. Reopen saved files to verify row counts and values. The default spreadsheet-safety option prefixes potentially executable text with an apostrophe, so exported text can differ. None of this example’s values need that prefix.

Limits and keeping your original

Use UTF-8 CSV/TSV or pasted text, up to 2 MB, 2,001 rows including headings and 50 columns. XLSX files are not read directly; copy the cells from Excel. Auto-detect chooses tab or comma; select Semicolon explicitly for that delimiter. Short rows are padded with empty cells on the right. Previews show only the first 100 data rows; copy and export include the whole result.

The tool code does not upload your table. Refreshing clears the working state. Keep the original CSV and any cleaned output you need. Data handling

Turn your cleaned table into a report figure

Confirm headings, units and the meaning of repeated labels before styling your chart.

Start cleaningChart creation guideMatch chart styles