모듈 별명 지어주기
1. np
- numpy module 별명
- 처음에 넘파이 라이브러리를 불러온 다음부터는 np 만 써도 오케이
import numpy as np
array1 = np.full (6, 0)
array2 = np.zeros(6)
array3 = np.full (6, 6)
array4 = np.ones (9)
array5 = np.random.random (6)
array6 = np.random.random (10)
2. plt
- matplot library : 시각화 할 때 사용하는 라이브러리
- pyplot : 위 라이브러리 안의 모듈
- 너무 긴데 계속 길게 쓰기 귀찮아서 짧은 별명 붙여주는 거
import matplotlib.pyplot
import matplotib.pyplot as plt
'데이터사이언스' 카테고리의 다른 글
3-5. numpy_operate (0) | 2023.01.23 |
---|---|
3-4. numpy_indexing&slicing (0) | 2023.01.23 |
3-2. numpy_array (0) | 2023.01.23 |
3-1. numpy (0) | 2023.01.23 |
2-1. JupyterNotebook_Tour (0) | 2023.01.23 |