22 Sep
2010
22 Sep
'10
11:34 a.m.
Dear All,
See below code pls,
import sicpy
import numpy as np
x = np.zeros((2,),dtype=('i4,f4,a10'))
x[:] = [(1,2.,'Hello'),(2,3.,"World")]
y = x['f2']
#array(['Hello', 'World'],
dtype='|S10')
x['f2'] = y
x
#array([(1, 2.0, 'Hello'), (2, 3.0, 'World')],
dtype=[('f0', '