小编mjo*_*ois的帖子

Numpy: set one specific element of each column based on indexing by array

On a smaller scale compared to what I need, here's an example of what I'm looking to do:

>>> a
array([[  21,   22,   23,   24,   25,   26,   27],
       [  56,   57,   58,   59,   60,   61,   62],
       [  14,   15,   16,   17,   18,   19,   20],
       [   7,    8,    9, 1010,   11,   12,   13],
       [  42,   43,   44,   45,   46,   47,   48],
       [  63,   64,   65,   66,   67,   68,   69],
       [   0,    1,    2,    3,    4,    5,    6],
       [  49,   50,   51, …
Run Code Online (Sandbox Code Playgroud)

python arrays numpy scipy

5
推荐指数
1
解决办法
2459
查看次数

标签 统计

arrays ×1

numpy ×1

python ×1

scipy ×1