
numpy记录
6丁一的猫
为时未晚
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
numpy.expand_dims
numpy.expand_dims(a, axis)[source] Expand the shape of an array. Insert a new axis that will appear at the axis position in the expanded array shape. Note Previous to NumPy 1.13.0, neither原创 2017-10-30 10:27:04 · 4141 阅读 · 0 评论 -
numpy基本操作
>>matrix = np.array([ [5, 10, 15], [20, 25, 30], [35, 40, 45] ]) >> matrix[:,1] array([10, 25, 40])>> ma...原创 2018-03-20 11:54:24 · 289 阅读 · 0 评论 -
numpy练习
highest_value = 0 highest_key = None for country in totals: consumption = totals[country] if highest_value < consumption: highest_value = consumption highest_key = countryto...原创 2018-03-20 16:45:24 · 298 阅读 · 0 评论