Helper function for assignment from other structured arrays

Sept. 17, 2018
6:14 p.m.
Hi, Assignment between structured arrays are matching by the order of fields, not by names of fields. Is there a recommended way of assignment by matching field names? I can see one way is to explicitly looping over the names; another possibility is to use the field names of the target array to index the source array. It would be nice if a recommended practice is provided as example near the documentation on the topic: https://docs.scipy.org/doc/numpy/user/basics.rec.html#assignment-from-other-... Thanks, Yu
2370
Age (days ago)
2370
Last active (days ago)
0 comments
1 participants
participants (1)
-
Feng Yu