In [1]:
import numpy as np

In [2]:
print("넘파이 실습")


넘파이 실습

In [3]:
A = np.array([1,2,3,4,5])

In [4]:
print(A)


[1 2 3 4 5]

In [5]:
np.ndim(A)


Out[5]:
1

In [6]:
A.shape


Out[6]:
(5,)

In [7]:
A.shape[0]


Out[7]:
5

In [8]:
B = np.array([[1,2],[3,4],[5,6]])

In [9]:
print(B)


[[1 2]
 [3 4]
 [5 6]]

In [11]:
np.ndim(B)


Out[11]:
2

In [12]:
B.shape


Out[12]:
(3, 2)

In [ ]: