프로그래밍언어/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