일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- pandas 메소드
- DataFrame
- numpy
- python
- 파이썬
- Machine Learning
- MacOS
- 머신러닝
- 기계학습
- 등차수열
- INSERT
- 리스트
- 조합
- plt
- 등비수열
- 문제풀이
- 재귀함수
- Slicing
- pandas filter
- tree.fit
- maplotlib
- barh
- Folium
- matplotlib
- 스터디노트
- 통계학
- 순열
- SQL
Archives
- Today
- Total
목록df.groupby (1)
코딩하는 타코야끼

1. 정렬 📍 index이름, column 이름을 기준으로 정렬 df = pd.read_csv('data/movie.csv', index_col = 'movie_title') df 🌓 sort_index(axis, ascending=True) axis index 이름 기준 정렬(행) : 'index' 또는 0 (기본값) column 이름 기준 정렬(열) : 'columns' 또는 1 ascending 정렬방식 True(기본): 오름차순, False: 내림차순 inplace 원본에 적용 여부 False(기본): 변경한 복사본 반환 True : 원본을 변경 # sort_index() -> index name 으로 정렬 df.sort_index() # (axis=0) df.sort_index(ascending..
[T.I.L] : Today I Learned/Pandas
2023. 4. 18. 20:28