how to slice 2D numpy array based on 2 1D arrays containing initial and final indexes

前端 未结 0 1915
误落风尘
误落风尘 2021-02-07 07:55

I have a 2D numpy array, let\'s say it has shape 4x10 (10 rows and 10 columns). I have 2 1D arrays that have the initial and final indexes, so they are both 20x1. For an example

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