I have this issue, I'm trying to build a 3D array where I need later to overwrite eg. [:,:,5] with a value from a 1D array. My arrays look like this in numpy:
3D:
[[[ 0. 150. 10. 300. 25. 0.]
[ 1. 25. 2. 75. 7. 0.]
[ 4. 0. 0. 0. 0. 0.]
[ 5. 0. 0. 0. 0. 0.]]
[[ 0. 150. 10. 300. 25. 0.]
[ 1. 25. 2. 75. 7. 0.]
[ 4. 0. 0. 0. 0. 0.]
[ 5. 0. 0. 0. 0. 0.]]
[[ 0. 150. 10. 300. 25. 0.]
[ 1. 25. 2. 75. 7. 0.]
[ 4. 0. 0. 0. 0. 0.]
[ 5. 0. 0. 0. 0. 0.]]
[[ 0. 150. 10. 300. 25. 0.]
[ 1. 25. 2. 75. 7. 0.]
[ 4. 0. 0. 0. 0. 0.]
[ 5. 0. 0. 0. 0. 0.]]
[[ 0. 150. 10. 300. 25. 0.]
[ 1. 25. 2. 75. 7. 0.]
[ 4. 0. 0. 0. 0. 0.]
[ 5. 0. 0. 0. 0. 0.]]
[[ 0. 150. 10. 300. 25. 0.]
[ 1. 25. 2. 75. 7. 0.]
[ 4. 0. 0. 0. 0. 0.]
[ 5. 0. 0. 0. 0. 0.]]
[[ 0. 150. 10. 300. 25. 0.]
[ 1. 25. 2. 75. 7. 0.]
[ 4. 0. 0. 0. 0. 0.]
[ 5. 0. 0. 0. 0. 0.]]
[[ 0. 150. 10. 300. 25. 0.]
[ 1. 25. 2. 75. 7. 0.]
[ 4. 0. 0. 0. 0. 0.]
[ 5. 0. 0. 0. 0. 0.]]
[[ 0. 150. 10. 300. 25. 0.]
[ 1. 25. 2. 75. 7. 0.]
[ 4. 0. 0. 0. 0. 0.]
[ 5. 0. 0. 0. 0. 0.]]
[[ 0. 150. 10. 300. 25. 0.]
[ 1. 25. 2. 75. 7. 0.]
[ 4. 0. 0. 0. 0. 0.]
[ 5. 0. 0. 0. 0. 0.]]]
1D:
[ 1806. 1092. 150. 150. 2669. 150. 150. 150.
310. 7181.85]
.. and what I want is this:
3d[0][0][5] = 1d[0]
3d[0][1][5] = 1d[0]
3d[0][2][5] = 1d[0]
3d[0][3][5] = 1d[0]
3d[1][0][5] = 1d[1]
3d[1][1][5] = 1d[1]
3d[1][2][5] = 1d[1]
3d[1][3][5] = 1d[1]
and so on. I have been trying somthing like this:
list_product_pricegroup[:,:,5] = migrete_array[:]
without any kind of luck, hope someone can guide me in the right direction.