Is it possible to add a new field in a numpy.genfromtxt output? Yes it is. I asked this question on stackoverflow and got an answer that works...
http://stackoverflow.com/questions/40182466/is-it-possible-to-add-a-new-field-in-a-numpy-genfromtxt-output/40183748#40183748
The trick is using the numpy.lib.recfunctions library. Use the append_fields function to add a new field to a data structure.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.