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


Groups > comp.lang.python > #75339

Load a CSV with different row lengths

Date 2014-07-29 01:15 -0400
Subject Load a CSV with different row lengths
From Ryan de Vera <ryan.devera.03@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.12405.1406618878.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

I am trying to load a csv with different row lengths. For example,

I have the csv

a,b
a,b,c,d
a,b,c

How can I load this into python? I tried using both NumPy and Pandas.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Load a CSV with different row lengths Ryan de Vera <ryan.devera.03@gmail.com> - 2014-07-29 01:15 -0400

csiph-web