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
- Dictionary
- len()
- DataAccess
- count()
- 최솟값
- insert()
- wcss
- analizer
- append()
- list
- 덴드로그램
- sklearn
- DataFrame
- 최댓값
- matplotlib
- hierarchical_clustering
- del
- dendrogram
- elbow method
- pandas
- function
- string
- numpy
- 분류 결과표
- nan
- data
- IN
- 반복문
- Python
- Machine Learning
Archives
- Today
- Total
개발공부
[Python] List sorted(), sort() 본문
항목들을 정렬하기
- 원래의 리스트 자체는 건들지 않고, 새롭게 정렬한 리스트를 반환하는 경우 : sorted()
- 원래의 리스트 자체를 정렬해서 변경하는 경우 : sort()
- reverse 인자를 통해 오름차순, 내림차순을 정할 수 있다.
- sorted()는 파이썬 내장 함수, sort()는 list 함수이다.

'Python > Basic' 카테고리의 다른 글
| [Python] Dictionary 데이터 추가, 변경, 삭제 (0) | 2022.04.20 |
|---|---|
| [Python] Dictionary 특징, 생성, 데이터 액세스 (0) | 2022.04.20 |
| [Python] List in, count(), len() (0) | 2022.04.20 |
| [Python] List del, remove(), pop() (0) | 2022.04.20 |
| [Python] List 변경, append(), insert(), + (0) | 2022.04.20 |