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
- 반복문
- data
- elbow method
- Machine Learning
- hierarchical_clustering
- append()
- numpy
- matplotlib
- 최솟값
- IN
- function
- len()
- Dictionary
- 덴드로그램
- Python
- 최댓값
- insert()
- list
- pandas
- 분류 결과표
- dendrogram
- del
- DataAccess
- DataFrame
- wcss
- sklearn
- nan
- analizer
- count()
- string
Archives
- Today
- Total
목록set_index (1)
개발공부
df 인덱스명 변경 # store 3 를 last store 로변경하기 df.rename( index = {'store 3' : 'last store'} ) 컬럼명 변경 # bikes 컬럼을 hat 으로 바꾸고, suits 컬럼은 shoes 로 바꾸기 df.rename ( columns= {'bikes' : 'hat', 'suits' : 'shoes'}) 컬럼을 인덱스로 사용 set_index() df # name 컬럼을 인덱스로 사용하고 싶을 때 # set_index()를 사용한다 # inplace = True => 원본 데이터 변경 여부 df.set_index('name', inplace = True) df 사용했던 컬럼을 원래대로 되돌리기 reset_index() df.reset_index(inpl..
Python/Pandas
2022. 5. 2. 12:08