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
- pandas
- 최댓값
- len()
- 반복문
- list
- DataAccess
- Python
- Dictionary
- Machine Learning
- numpy
- count()
- nan
- sklearn
- function
- matplotlib
- append()
- string
- 분류 결과표
- dendrogram
- hierarchical_clustering
- elbow method
- del
- 최솟값
- DataFrame
- analizer
- 덴드로그램
- insert()
- wcss
- data
- IN
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