摘要: 加载数据Fun:pandas.read_csv>>> import pandas>>> food_info = pandas.read_csv("food_info.csv")>>> print(food_info.dtypes)NDB_No int64Shrt_Desc objectWater_(g) float64Energ_K... 阅读全文
posted @ 2018-03-02 16:35 zfCode 阅读(1298) 评论(0) 推荐(0)
摘要: numpy.array()功能:创建一个数据vector = numpy.array([1,2,3,4])matrix = numpy.array([1,2,3,4],[11,12,13,14])numpy.shape功能:查看有多少个对象在数组中print(vector.shape)print(matrix.shape)numpy.genfromtxt()功能:Load data from ... 阅读全文
posted @ 2018-03-02 09:25 zfCode 阅读(306) 评论(0) 推荐(0)