Efficiently create 2d numpy array given 1 dimension and a constant

前端 未结 0 1088
野趣味
野趣味 2021-02-03 10:09

Given an x-dataset,

x = np.array([1, 2, 3, 4, 5])

what is the most efficient way to create the NumPy array where each x coordinate is paired with

相关标签:
回答
  • 消灭零回复
提交回复
热议问题