All,
Anybody could point me to some docs on dtypes ? Michael Droettboom's recent
question made me realize that things were far more complex than I thought.
For example, how can I find the shape and type of a field (without using
dtype.descr).
Thanks a lot in advance
P.
On Mon, Jul 14, 2008 at 17:06, Pierre GM [EMAIL PROTECTED] wrote:
All,
Anybody could point me to some docs on dtypes ? Michael Droettboom's recent
question made me realize that things were far more complex than I thought.
For example, how can I find the shape and type of a field (without using
On Monday 14 July 2008 18:53:41 Robert Kern wrote:
dtype.fields is a dict-like object containing the same information,
but accessible by field name.
But as it's a dictionary, I can't use iteritems() without risking having the
wrong order of fields, right ? Or do dictproxies behave differently
On Mon, Jul 14, 2008 at 18:24, Pierre GM [EMAIL PROTECTED] wrote:
On Monday 14 July 2008 18:53:41 Robert Kern wrote:
dtype.fields is a dict-like object containing the same information,
but accessible by field name.
But as it's a dictionary, I can't use iteritems() without risking having the
On Monday 14 July 2008 19:39:39 Robert Kern wrote:
Right. If you want order, use dtype.descr, or sort on the last item in
the tuple. We can probably reimplement the dictproxy to guarantee
order.
Oh, with dtype.names and dtype.fields I can work. The Guide mentions a key
[-1] in dtype.fields
On Mon, Jul 14, 2008 at 19:41, Pierre GM [EMAIL PROTECTED] wrote:
On Monday 14 July 2008 19:39:39 Robert Kern wrote:
Right. If you want order, use dtype.descr, or sort on the last item in
the tuple. We can probably reimplement the dictproxy to guarantee
order.
Oh, with dtype.names and
On Monday 14 July 2008 21:56:47 Robert Kern wrote:
Oh, with dtype.names and dtype.fields I can work. The Guide mentions a
key [-1] in dtype.fields that should store the names in order: that would
be quite useful but it doesn't work (KeyError).
Where do you see this mention?
Page 116 of my
On Mon, Jul 14, 2008 at 21:15, Pierre GM [EMAIL PROTECTED] wrote:
On Monday 14 July 2008 21:56:47 Robert Kern wrote:
Oh, with dtype.names and dtype.fields I can work. The Guide mentions a
key [-1] in dtype.fields that should store the names in order: that would
be quite useful but it