且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将字段添加到结构化的numpy数组

更新时间:2023-11-09 21:02:10

如果您使用的是numpy 1.3,则还有numpy.lib.recfunctions.append_fields().

If you're using numpy 1.3, there's also numpy.lib.recfunctions.append_fields().

对于许多安装,您需要import numpy.lib.recfunctions进行访问. import numpy不允许看到numpy.lib.recfunctions

For many installations, you'll need to import numpy.lib.recfunctions to access this. import numpy will not allow one to see the numpy.lib.recfunctions