[SciPy-user] NumPy Newcomer Questions: Reading Data Stream & Building Array
strawman at astraw.com
Mon Sep 11 11:40:09 CDT 2006
Rich Shepard wrote:
> On Sat, 9 Sep 2006, Johannes Loehnert wrote:
>> Understood now. But you cannot store strings and floats in an array
> I understand. I was thinking of lists, I guess. This is not a problem
> because I can store a numeric code (1, 2, 3) for each of the two strings and
> translate them later in the program. They're there for selecting rows.
Actually, with the sophisticated dtypes (datatypes) now in numpy, you
can now store strings and floats in the same array. However, you
solution sounds sensible and simpler than creating such an array, so you
may prefer to carry on.
More information about the SciPy-user