Sept. 11, 2006
4:40 p.m.
Rich Shepard wrote:
On Sat, 9 Sep 2006, Johannes Loehnert wrote:
Understood now. But you cannot store strings and floats in an array simultaneously.
Johannes,
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.