Modifying a multidimensional Numpy array

前端 未结 0 572
臣服心动
臣服心动 2021-01-24 05:52

I have a 2D numpy array [1,2], [3,4], [5,6]. How can I modify the values in the second column (eg. add 1 to each value, so the result would be ([1,3], [3,5], [5,7])?

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