Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #130477 > unrolled thread

Numbers not importating certain records in a .CSV

Started byJF Mezei <jfmezei.spamnot@vaxination.ca>
First post2020-02-25 18:16 -0500
Last post2020-02-26 15:12 +0000
Articles 4 — 4 participants

Back to article view | Back to comp.sys.mac.system


Contents

  Numbers not importating certain records in a .CSV JF Mezei <jfmezei.spamnot@vaxination.ca> - 2020-02-25 18:16 -0500
    Re: Numbers not importating certain records in a .CSV Chris Schram <chrispam1@me.com> - 2020-02-25 23:34 +0000
    Re: Numbers not importating certain records in a .CSV dempson@actrix.gen.nz (David Empson) - 2020-02-26 13:57 +1300
      Re: Numbers not importating certain records in a .CSV Jolly Roger <jollyroger@pobox.com> - 2020-02-26 15:12 +0000

#130477 — Numbers not importating certain records in a .CSV

FromJF Mezei <jfmezei.spamnot@vaxination.ca>
Date2020-02-25 18:16 -0500
SubjectNumbers not importating certain records in a .CSV
Message-ID<9Vh5G.137270$8h.108349@fx26.iad>
Canadian Government has a database of cellular towers across Canada, as
entered by each company.  The data extract link provides a .csv file.
(in a .zip)

http://sms-sgs.ic.gc.ca/eic/site/sms-sgs-prod.nsf/eng/h_00010.html
(Data Download -> Spectrum License Site Data)

When importing into Numbers, the first record below gets inported, the
second one is ignored and no error message. (there are quite a few that
don't get imported).

Mr Woodhead , with whom I have butted heads often is still causing me
problems :-) (His name doesn't belong in the "LICENSEE" field as
spectrum licenes belong to the company, not an individual (and woodhead
no longer SVP Regulatory).

Is this a question of a single field being too long, special characters
in that field, or total length of record that is the show stopper?



"007093900205","010286011-001","70939002","010286011-","TELUS
Communications Inc.","PCS",1968.75,1888.75,1967.5,1970,2.5,"530 Richmond
Ave East Brandon
MB","MB",49.826,-99.9311,388,45,"P3",,1194.32,"I","5M00V7WEC","ZZ","UNNPX309R3-6P",45,170,50,17,"D",1,,,"2019-11-13"


"007093900205","010286015-001","93900205","5172287","TELUS
Communications Company Ted Woodhead SVP - Reg.
Affairs","WCS",2310,2310,2305,2315,10,"1235 Chattell Road Parksville
BC","BC",49.3017,-124.2619,64,52,"R6","NSN_Radio",10,"I","10M0V7WEW","ZZ","CNPX306.10R-4P",49,230,0,17.3,"N",1,"N","2015-03-27","2015-09-08"

[toc] | [next] | [standalone]


#130478

FromChris Schram <chrispam1@me.com>
Date2020-02-25 23:34 +0000
Message-ID<r34atg$1n53$1@gioia.aioe.org>
In reply to#130477
On 2020-02-25, JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
> Canadian Government has a database of cellular towers across Canada, as
> entered by each company.  The data extract link provides a .csv file.
> (in a .zip)
>
> http://sms-sgs.ic.gc.ca/eic/site/sms-sgs-prod.nsf/eng/h_00010.html
> (Data Download -> Spectrum License Site Data)
>
> When importing into Numbers, the first record below gets inported, the
> second one is ignored and no error message. (there are quite a few that
> don't get imported).
>
> Mr Woodhead , with whom I have butted heads often is still causing me
> problems :-) (His name doesn't belong in the "LICENSEE" field as
> spectrum licenes belong to the company, not an individual (and woodhead
> no longer SVP Regulatory).
>
> Is this a question of a single field being too long, special characters
> in that field, or total length of record that is the show stopper?
>
>
>
> "007093900205","010286011-001","70939002","010286011-","TELUS
> Communications Inc.","PCS",1968.75,1888.75,1967.5,1970,2.5,"530 Richmond
> Ave East Brandon
> MB","MB",49.826,-99.9311,388,45,"P3",,1194.32,"I","5M00V7WEC","ZZ","UNNPX309R3-6P",45,170,50,17,"D",1,,,"2019-11-13"
>
>
> "007093900205","010286015-001","93900205","5172287","TELUS
> Communications Company Ted Woodhead SVP - Reg.
> Affairs","WCS",2310,2310,2305,2315,10,"1235 Chattell Road Parksville
> BC","BC",49.3017,-124.2619,64,52,"R6","NSN_Radio",10,"I","10M0V7WEW","
> ZZ","CNPX306.10R-4P",49,230,0,17.3,"N",1,"N","2015-03-27","2015-09-08"
> 

DISCLAIMER: This suggestion may be totally useless, but your situation
is somewhat similar to one I recently encountered.

I downloaded an .xls file from my credit card company and attempted to
import it into Numbers. The result was a total mess, like nothing
useful at all.

Instead of giving up, I tried opening the file in Google Sheets.
Everything was there in the right place. The only adjustment I had to
make was column width. I exported that file back to Excel format, and it
imported flawlessly into Numbers.

If you have a Google presence, and who doesn't nowadays, this trick may
be worth a try.

-- 
chrispam1@me.com is a filtered spam magnet. Email replies may be lost.
You're better off replying to this newsgroup.

[toc] | [prev] | [next] | [standalone]


#130485

Fromdempson@actrix.gen.nz (David Empson)
Date2020-02-26 13:57 +1300
Message-ID<1omdu3l.5g3rtscvzi7cN%dempson@actrix.gen.nz>
In reply to#130477
JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:

> Canadian Government has a database of cellular towers across Canada, as
> entered by each company.  The data extract link provides a .csv file.
> (in a .zip)
> 
> http://sms-sgs.ic.gc.ca/eic/site/sms-sgs-prod.nsf/eng/h_00010.html
> (Data Download -> Spectrum License Site Data)
> 
> When importing into Numbers, the first record below gets inported, the
> second one is ignored and no error message. (there are quite a few that
> don't get imported).
> 
> Mr Woodhead , with whom I have butted heads often is still causing me
> problems :-) (His name doesn't belong in the "LICENSEE" field as
> spectrum licenes belong to the company, not an individual (and woodhead
> no longer SVP Regulatory).
> 
> Is this a question of a single field being too long, special characters
> in that field, or total length of record that is the show stopper?
> 
> 
> 
> "007093900205","010286011-001","70939002","010286011-","TELUS
> Communications Inc.","PCS",1968.75,1888.75,1967.5,1970,2.5,"530 Richmond
> Ave East Brandon MB","MB",49.826,-99.9311,388,45,"P3",,1194.32,"I",
> "5M00V7WEC","ZZ","UNNPX309R3-6P",45,170,50,17,"D",1,,,"2019-11-13"
> 
> 
> "007093900205","010286015-001","93900205","5172287","TELUS
> Communications Company Ted Woodhead SVP - Reg. Affairs","WCS",2310,2310,
> 2305,2315,10,"1235 Chattell Road Parksville BC","BC",49.3017,-124.2619,
> 64,52,"R6","NSN_Radio",10,"I","10M0V7WEW","ZZ","CNPX306.10R-4P",49,230,0,
> 17.3,"N",1,"N","2015-03-27","2015-09-08"

(Curiosity got the better of me so I bypassed my killfile.)

This has an obvious explanation: Numbers has a limit of 65535 rows in a
table. That CSV has about 590K rows.

The first row (which loaded) is before the 64K cutoff, the second row
(which didn't load) is after it.

Numbers tells you about the limit being exceeded in an import results
window that appears in front of the opened CSV. You still need to be in
my killfile to preserve my sanity.

Numbers also mangles some of the columns, treating them as numeric data
even though they are quoted in the CSV and have unusual syntax, so I
wouldn't regard it as a good choice even if the CSV was shorter.

Some alternatives I tried:

Use a database, e.g. SQLite has no trouble importing this (and has many
free/cheap graphical front ends if you can't handle the command line).

If you don't need it in a table structure and just want to be able to
search, use a plain text editor which handles big files, such as BBEdit
(which could even achieve a simple column view by find/replace and
setting a larger tab size).

I didn't try these:

Recent Excel should be able to handle up to 1048576 rows (that is its
limit on Windows, I don't have access to Mac versions), as can
LibreOffice.

Google Sheets is probably out as it appears to be limited to 40K rows
per import and 5 million cells per sheet.

-- 
David Empson
dempson@actrix.gen.nz

[toc] | [prev] | [next] | [standalone]


#130507

FromJolly Roger <jollyroger@pobox.com>
Date2020-02-26 15:12 +0000
Message-ID<hbng74F15gcU4@mid.individual.net>
In reply to#130485
On 2020-02-26, David Empson <dempson@actrix.gen.nz> wrote:
> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
>
>> Canadian Government has a database of cellular towers across Canada, as
>> entered by each company.  The data extract link provides a .csv file.
>> (in a .zip)
>> 
>> http://sms-sgs.ic.gc.ca/eic/site/sms-sgs-prod.nsf/eng/h_00010.html
>> (Data Download -> Spectrum License Site Data)
>> 
>> When importing into Numbers, the first record below gets inported, the
>> second one is ignored and no error message. (there are quite a few that
>> don't get imported).
>> 
>> Mr Woodhead , with whom I have butted heads often is still causing me
>> problems :-) (His name doesn't belong in the "LICENSEE" field as
>> spectrum licenes belong to the company, not an individual (and woodhead
>> no longer SVP Regulatory).
>> 
>> Is this a question of a single field being too long, special characters
>> in that field, or total length of record that is the show stopper?
>> 
>> "007093900205","010286011-001","70939002","010286011-","TELUS
>> Communications Inc.","PCS",1968.75,1888.75,1967.5,1970,2.5,"530 Richmond
>> Ave East Brandon MB","MB",49.826,-99.9311,388,45,"P3",,1194.32,"I",
>> "5M00V7WEC","ZZ","UNNPX309R3-6P",45,170,50,17,"D",1,,,"2019-11-13"
>> 
>> "007093900205","010286015-001","93900205","5172287","TELUS
>> Communications Company Ted Woodhead SVP - Reg. Affairs","WCS",2310,2310,
>> 2305,2315,10,"1235 Chattell Road Parksville BC","BC",49.3017,-124.2619,
>> 64,52,"R6","NSN_Radio",10,"I","10M0V7WEW","ZZ","CNPX306.10R-4P",49,230,0,
>> 17.3,"N",1,"N","2015-03-27","2015-09-08"
>
> (Curiosity got the better of me so I bypassed my killfile.)
>
> This has an obvious explanation: Numbers has a limit of 65535 rows in a
> table. That CSV has about 590K rows.
>
> The first row (which loaded) is before the 64K cutoff, the second row
> (which didn't load) is after it.
>
> Numbers tells you about the limit being exceeded in an import results
> window that appears in front of the opened CSV.

That requires two things JF Mezei struggles with on a daily basis:

  * reading
  * comprehension

-- 
E-mail sent to this address may be devoured by my ravenous SPAM filter.
I often ignore posts from Google. Use a real news client instead.

JR

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.mac.system


csiph-web