기술 성공, 실패 기록소

dataframe sort_index 본문

프로그래밍언어/python

dataframe sort_index

sunlab 2021. 8. 11. 00:11
728x90

https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.sort_index.html

 

pandas.DataFrame.sort_index — pandas 1.3.1 documentation

If not None, apply the key function to the index values before sorting. This is similar to the key argument in the builtin sorted() function, with the notable difference that this key function should be vectorized. It should expect an Index and return an I

pandas.pydata.org

axis 0 이 default

0은 row에 대해서 sort

1은 column에 대해서 sort

'프로그래밍언어 > python' 카테고리의 다른 글

Change default Ubuntu pip to pip2.7  (0) 2021.12.31
dataframe drop  (0) 2021.08.11
dataframe values  (0) 2021.08.10
df cumprod()  (0) 2021.07.19
df pct_change  (0) 2021.07.19