np.ptp([0,1,2,3])
np.set_printoptions(suppress=True)
3.切片数据
method 1:直接切片
check_x = source_data[:, 0:14]
print("check_x", check_x)
method2:利用split函数进行分割
x, y = np.split(source_data, (13,), axis=1)
print("x:", source_data)
x = np.concatenate([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
结果是[1,2,3,4,5,6]