import numpy as np
smap_sanity_0 = np.zeros((2401,2401))
for i in range(1140,1250):
for j in range(1470,1550):
smap_sanity_0[i,j]=100
前提・実現したいこと
pythonでデータ処理を行っています。
np.zerosの配列の数値を置換したいと考えているのですが、数値が変わりません。
初歩的な質問ですがよろしくお願いします。
試したこと
import numpy as np
smap_sanity_0 = np.zeros((2401,2401))
for i in range(0,100):
for j in range(0,100):
smap_sanity_0[i,j]=100
このコードでは上手く数値を置換できました。
回答1件
あなたの回答
tips
プレビュー