TableTool icon indicating copy to clipboard operation
TableTool copied to clipboard

Feature request: Count the number of rows

Open stevevance opened this issue 8 years ago • 9 comments

I often want to count the number of rows in a CSV file, so that I can confirm with the person who produced the file that I've received the same number of rows that they exported from the database that originally holds the data.

stevevance avatar Jan 29 '18 17:01 stevevance

On a Mac? Use the terminal: wc -l filename.csv

wc = word count -l = lines (not words)

(Not that this isn't a reasonable request, just that there's an easy solution.)

Jmuccigr avatar Feb 06 '18 02:02 Jmuccigr

@Jmuccigr I had already tried that. It reported the correct line count but the wrong row count, because there were line breaks in some of the fields.

stevevance avatar Feb 06 '18 05:02 stevevance

@stevevance Ah, yes, that can be a problem.

Jmuccigr avatar Feb 06 '18 14:02 Jmuccigr

Can you please propose exactly how this might look in the GUI? Can you please provide a mockup.

fulldecent avatar Apr 08 '18 20:04 fulldecent

I'd suggest a few options:

  1. Put it after the file title, so "Untitled (1,234 rows)". Could get tough with lots of rows.
  2. Put it at the bottom with the other metadata.
  3. Insert a dummy first column that's just a row number.

Jmuccigr avatar Apr 08 '18 20:04 Jmuccigr

I like the column that has row numbers.

stevevance avatar Apr 09 '18 00:04 stevevance

From the evil Excel 😈 image

mcoenca avatar May 02 '18 15:05 mcoenca

I also can use both total row count and individual row numbers. Using wc does not cut it for me as I have content with new-line in it which cause wc to count the number of lines, not the number of records.

ido-ran avatar Aug 02 '18 09:08 ido-ran

First column idea! +1 🎉

weavermedia avatar Dec 13 '19 18:12 weavermedia