On Feb 26, 2010, at 12:42 PM, Sam Tygier wrote:
> On Fri, 2010-02-26 at 07:56 +, numpy-discussion-requ...@scipy.org
> wrote:
>> Date: Thu, 25 Feb 2010 13:56:43 -0800
>> From: Chris Barker
>>
>> if not, I'd use the std lib csv module, then convert to numpy arrays,
>> not as efficient, but it s
On Fri, 2010-02-26 at 07:56 +, numpy-discussion-requ...@scipy.org
wrote:
> Date: Thu, 25 Feb 2010 13:56:43 -0800
> From: Chris Barker
> Subject: Re: [Numpy-discussion] read ascii file with quote delimited
> strings
> To: Discussion of Numerical Python
> Message-
Warren Weckesser wrote:
> Does each column always contain the same number of characters? That >is, are
> the field widths always the same? If so, you can ...
if not, I'd use the std lib csv module, then convert to numpy arrays,
not as efficient, but it should be easy.
-Chris
--
Christoph
Sam Tygier wrote:
> Hi
>
> I am trying to read an ascii file which mixes ints, floats and stings.
> eg.
> 1 2.3 'a' 'abc '
> 2 3.2 'b' ' '
> 3 3.4 ' ' 'hello'
>
> Within a column that data is always the same. the strings are sometimes
> contain with spaces.
>
Does each column always contai