0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

arrayについて学んだこと

0
Last updated at Posted at 2026-04-15

配列を作成できる

bin_width = np.arange(0, 1.05, 0.05)
bin_width

出力結果

array([0.  , 0.05, 0.1 , 0.15, 0.2 , 0.25, 0.3 , 0.35, 0.4 , 0.45, 0.5 ,
       0.55, 0.6 , 0.65, 0.7 , 0.75, 0.8 , 0.85, 0.9 , 0.95, 1.  ])
  • 正確には、Numpy配列という。

len()で要素の合計数を返す

print(len(bin_width))
  • 出力結果
21

インデックスを指定して配列を返す

bin_width[1]
  • 出力結果
bin_width[1]
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?