import as np
np.array创建矩阵
np.shape查看矩阵维度
np.genfromtxt('name,csv',delimiter=',',dtype='U75',skip_header=1)读取csv文件,并且已unicode75的方式进行编码,跳过标题行。
np.astype(float). 改变矩阵的数据类型


import as np
np.array创建矩阵
np.shape查看矩阵维度
np.genfromtxt('name,csv',delimiter=',',dtype='U75',skip_header=1)读取csv文件,并且已unicode75的方式进行编码,跳过标题行。
np.astype(float). 改变矩阵的数据类型
本文标题:numpy
本文链接:https://www.haomeiwen.com/subject/ophabxtx.html
网友评论