Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.102 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.80; '*S*': 0.01; 'csv': 0.16; 'numpy': 0.16; 'subject:CSV': 0.16; 'trying': 0.19; 'python?': 0.22; 'load': 0.23; 'tried': 0.27; 'message-id:@mail.gmail.com': 0.30; 'subject:with': 0.35; 'received:google.com': 0.35; 'example,': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'different': 0.65; 'subject:Load': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=olfp1QXr1cdurI0XRzkZ6hSmy0awGValUJuZkevR7ho=; b=Gx6CsHCln8Y3c3Fomvd9UQbdvYzi2ScY2Q7Luzywta2xJASCWcbHrJKj9E3X2WPqAV dqoMJTijU3LUmTPE/anD54YUqP7IrZriSpMFwt7ENqHjwTb8AJlcZFOhQRZX6HwR8MCH 521Jz3L+xeA5ISd+xnNRSRVVKdZ8cUvMqm7X25og6+fUEFOVi9yym8d6kwyUSllC0jth O3igc5ce9h8gG8xIoT92sF+wUEzPeWCv6EI8e5xigEW+VgLl0ggt+D9oIMsPAvAdAVv+ R9nySdd/7t+pDiSr4j+UgCBuFTaYkZjCsHminBbL1qfdfM5GM3DUEdKjyOzU+PU1qlh0 IhBw== MIME-Version: 1.0 X-Received: by 10.182.112.134 with SMTP id iq6mr55056124obb.34.1406610937019; Mon, 28 Jul 2014 22:15:37 -0700 (PDT) Date: Tue, 29 Jul 2014 01:15:36 -0400 Subject: Load a CSV with different row lengths From: Ryan de Vera To: python-list@python.org Content-Type: multipart/alternative; boundary=089e0149cf603d020904ff4e21f7 X-Mailman-Approved-At: Tue, 29 Jul 2014 09:27:57 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1406618878 news.xs4all.nl 2863 [2001:888:2000:d::a6]:58340 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75339 --089e0149cf603d020904ff4e21f7 Content-Type: text/plain; charset=UTF-8 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. --089e0149cf603d020904ff4e21f7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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.


--089e0149cf603d020904ff4e21f7--