文章概览
用于数据处理
生成数据
1 | # 等差数组 |
数据类型
1 | import numpy as np |
函数 | 用途 |
---|---|
new_list = np.append(old_list, [1,2,3]) | 添加 |
new_list = np.insert(old_list, 2, [1,2,3]) | 插入 |
new_list = np.delate(old_list, [1,2,3]) | 删除 |
数据处理
1 | # 找到数组中值小于阈值的位置 |
多想多做,发篇一作
用于数据处理
1 | # 等差数组 |
1 | import numpy as np |
函数 | 用途 |
---|---|
new_list = np.append(old_list, [1,2,3]) | 添加 |
new_list = np.insert(old_list, 2, [1,2,3]) | 插入 |
new_list = np.delate(old_list, [1,2,3]) | 删除 |
1 | # 找到数组中值小于阈值的位置 |
多想多做,发篇一作