2D numpy array slicing out of range if boundaries are too close

前端 未结 0 1039
無奈伤痛
無奈伤痛 2021-01-24 04:22

I have a rectangular 2D numpy array self.rho. For reasons of averaging I need an array containing the first 3 elements of self.rho[:][3]. I tried self.rho[0:3

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