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 | 29 | 30 | 31 |
Tags
- matplotlib
- 최댓값
- nan
- 분류 결과표
- elbow method
- numpy
- dendrogram
- DataAccess
- sklearn
- count()
- Machine Learning
- pandas
- 최솟값
- 반복문
- 덴드로그램
- len()
- append()
- function
- Dictionary
- del
- hierarchical_clustering
- analizer
- data
- DataFrame
- IN
- wcss
- string
- Python
- insert()
- list
Archives
- Today
- Total
목록sort (1)
개발공부
import pandas as pd df = pd.DataFrame({'Employee ID':[111, 222, 333, 444], 'Employee Name':['Chanel', 'Steve', 'Mitch', 'Bird'], 'Salary [$/h]':[35, 29, 38, 20], 'Years of Experience':[3, 4 ,9, 1]}) df sort_index() 인덱스에 기반하여 정렬한다. # ascending = True면 오름차순, False면 내림차순 df.sort_index() sort_values() 데이터에 기반하여 정렬한다. # 경력을 오름차순으로 정렬 df.sort_values('Years of Experience') # 경력을 내림차순으로 정렬 df.sort_value..
Python/Pandas
2022. 5. 3. 14:05