The difference Numpy of dtype and astype

dtype be used to view data type

astype can be used to modify the data type, but not in-place modification

astype may correspond np.int (), np.float ()

Dtype with modified data type, there will be bugs, like dtype is another way to interpret the binary string

Guess you like

Origin www.cnblogs.com/Gelthin2017/p/12115724.html