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?

np.arrray(行列)を覚えやすく。

Posted at

#一次元 dim はディメンションの意味
print(data.ndim)

#要素数は5つ
print(data.size)

#2つの次元に6つの要素を入れる。
#縦が行、横が列
data2 = np.array([[1, 2, 3], [4, 5, 6]])
print(data2)

#次元が2次元(2ディメンション)ということ。

data2.ndim

#要素数が6 ということ。
data2.size

#行(2)列(3)とわかる。
data2.shape

行はーーーー
列は串刺し

で覚える??

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?