[Numpy-discussion] Helper function for assignment from other structured arrays
rainwoodman at gmail.com
Mon Sep 17 18:14:00 EDT 2018
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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion