fieldName) |
fieldName
can be either an integer (field index) or string
(field name).
>>> r=rec.array([[11,'abc',1.],[12, 'xx', 2.]]) >>> print r.field('c1') [11 12] >>> print r.field(0) # same as field('c1') [11 12]
>>> r.field(2)[1]=1000; r.field(1)[1]='xyz' >>> r.field(0)[:]=999 >>> print r RecArray[ (999, 'abc', 1.0), (999, 'xyz', 1000.0) ]
) |
Send comments to the NumArray community.