Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- elbow method
- pandas
- insert()
- 덴드로그램
- string
- 최댓값
- DataFrame
- matplotlib
- wcss
- 반복문
- function
- del
- list
- IN
- hierarchical_clustering
- nan
- analizer
- sklearn
- 최솟값
- numpy
- append()
- dendrogram
- Python
- len()
- Machine Learning
- DataAccess
- 분류 결과표
- Dictionary
- count()
- data
Archives
- Today
- Total
개발공부
[Python] Numpy 중복 제거 unique() 본문
np.unique()
-중복된 값을 제거한다.
- set과 유사한 기능을 한다.
>>> x = np.array([1, 5, 3, 1, 40, 22, 33, 56, 12, 1, 5, 3])
>>> x
array([ 1, 5, 3, 1, 40, 22, 33, 56, 12, 1, 5, 3])
>>> np.unique(x)
array([ 1, 3, 5, 12, 22, 33, 40, 56])
'Python > Numpy' 카테고리의 다른 글
| [Python] Numpy 시간 처리 방법 np.datetime64 (0) | 2022.05.04 |
|---|---|
| [Python] Numpy 연산, 브로드 캐스팅(broadcasting) (0) | 2022.04.29 |
| [Python] Numpy 항목 추가하기 append(), insert() (0) | 2022.04.29 |
| [Python] Numpy 항목 삭제하기 delete (0) | 2022.04.28 |
| [Python] Numpy 최댓값, 최솟값의 인덱스 구하기 (0) | 2022.04.28 |