[Numpy-discussion] array with object

Lionel Roubeyrie lroubeyrie at limair.asso.fr
Wed Nov 29 05:28:50 CST 2006


Hi all,
I don't understand why can't I do that:
b=array([(datetime.datetime(2006,11,29),'2','3'),
(datetime.datetime(2006,11,30),'5','6')], dtype=[('Dates', 'object'),
('HUM', 'float32'), ('TEM', 'float32')])
ValueError: tried to set void-array with object members using buffer.
Thanks

-- 
Lionel Roubeyrie - lroubeyrie at limair.asso.fr
LIMAIR
http://www.limair.asso.fr


More information about the Numpy-discussion mailing list