python numpy ndarray astype error

来源:互联网 发布:单机手机游戏 知乎 编辑:程序博客网 时间:2024/06/04 23:30


you must use a new ndarray to store the transferred elements, as described in the documents:


By default, astype always returns a newly allocated array. If thisis set to false, and thedtype,order, and subokrequirements are satisfied, the input array is returned insteadof a copy.